summaryrefslogtreecommitdiffstats
path: root/src/otrpreferences.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2021-06-28 19:30:15 +0200
committerSlávek Banko <[email protected]>2021-07-02 12:38:56 +0200
commit0815aa940a9a49fa5b805d4ec6fa06fa63336899 (patch)
tree569968ce1630dc20be6b8a505f38efe3003272e3 /src/otrpreferences.cpp
parent44b86b7c6fd10846c4deab061d49ab7f4402ba3a (diff)
downloadkopete-otr-0815aa940a9a49fa5b805d4ec6fa06fa63336899.tar.gz
kopete-otr-0815aa940a9a49fa5b805d4ec6fa06fa63336899.zip
Fix FTBFS with Clang.
Use TQStringList instead of TQString[5]. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 707963c2640948aa0fcf2fd6b4651690c8d43ef4)
Diffstat (limited to 'src/otrpreferences.cpp')
-rw-r--r--src/otrpreferences.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/otrpreferences.cpp b/src/otrpreferences.cpp
index 6f6fafe..b88c602 100644
--- a/src/otrpreferences.cpp
+++ b/src/otrpreferences.cpp
@@ -139,13 +139,14 @@ void OTRPreferences::showPrivFingerprint( int accountnr )
void OTRPreferences::fillFingerprints(){
TQTable *fingerprintsTable = preferencesDialog->tbFingerprints;
preferencesDialog->tbFingerprints->setNumRows(0);
- TQValueList<TQString[5]> list = otrlConfInterface->readAllFingerprints();
- TQValueList<TQString[5]>::iterator it;
+ TQValueList<TQStringList> list = otrlConfInterface->readAllFingerprints();
+ TQValueList<TQStringList>::iterator it;
int j = 0;
for( it = list.begin(); it != list.end(); ++it ){
preferencesDialog->tbFingerprints->setNumRows( preferencesDialog->tbFingerprints->numRows() +1 );
- (*it)[0] = OtrlChatInterface::self()->formatContact((*it)[0]);
- for( int i = 0; i < 5; i++ ){
+ fingerprintsTable->setItem(j, 0, new TQAlignTableItem(fingerprintsTable, TQTableItem::Never,
+ OtrlChatInterface::self()->formatContact((*it)[0]), TQt::AlignLeft));
+ for( int i = 1; i < 5; i++ ){
//preferencesDialog->tbFingerprints->setText(j, i, (*it)[i] );
fingerprintsTable->setItem(j,i, new TQAlignTableItem(fingerprintsTable, TQTableItem::Never,(*it)[i],TQt::AlignLeft));
}