From 9c02dbb59ce57c68dc177d9294b980bf114a3e11 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 15:59:03 -0500 Subject: Update to TDE R14 API --- doc/html/commandlist_8cpp-source.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doc/html/commandlist_8cpp-source.html') diff --git a/doc/html/commandlist_8cpp-source.html b/doc/html/commandlist_8cpp-source.html index 913d2df..6c71e79 100644 --- a/doc/html/commandlist_8cpp-source.html +++ b/doc/html/commandlist_8cpp-source.html @@ -45,7 +45,7 @@ 00028 { 00029 } 00030 -00031 void CommandList::setCombo (QComboBox* combo, int nIndex) +00031 void CommandList::setCombo (TQComboBox* combo, int nIndex) 00032 { 00033 combo->clear (); 00034 for (CommandEntry* pElem = first(); pElem; pElem = next()) @@ -95,7 +95,7 @@ 00078 return false; 00079 } 00080 -00081 int CommandList::compareItems (QCollection::Item item1, QCollection::Item item2 ) +00081 int CommandList::compareItems (TQCollection::Item item1, TQCollection::Item item2 ) 00082 { 00083 CommandEntry* entry1 = (CommandEntry*) item1; 00084 CommandEntry* entry2 = (CommandEntry*) item2; @@ -106,24 +106,24 @@ 00089 else return -1; 00090 } 00091 -00092 QCollection::Item CommandList::newItem (QCollection::Item d) +00092 TQCollection::Item CommandList::newItem (TQCollection::Item d) 00093 { 00094 return new CommandEntry ((CommandEntry*)d); 00095 } 00096 -00097 void CommandList::readOptions (KConfig* config) +00097 void CommandList::readOptions (TDEConfig* config) 00098 { 00099 config->setGroup ("usercommands"); 00100 bool goon = true; 00101 int i = 0; 00102 while (goon) 00103 { -00104 QString cmd (config->readEntry (QString ("cmd%1").arg(i))); +00104 TQString cmd (config->readEntry (TQString ("cmd%1").arg(i))); 00105 if (!cmd.isEmpty ()) 00106 { -00107 QString path = config->readEntry (QString("path%1").arg(i)); -00108 int id = config->readNumEntry (QString("id%1").arg(i)); -00109 bool modal = config->readBoolEntry (QString("modal%1").arg(i), true); +00107 TQString path = config->readEntry (TQString("path%1").arg(i)); +00108 int id = config->readNumEntry (TQString("id%1").arg(i)); +00109 bool modal = config->readBoolEntry (TQString("modal%1").arg(i), true); 00110 append (new CommandEntry (cmd, path, id, modal)); 00111 i++; 00112 } @@ -134,16 +134,16 @@ 00117 at (0); 00118 } 00119 -00120 void CommandList::saveOptions (KConfig* config) +00120 void CommandList::saveOptions (TDEConfig* config) 00121 { 00122 kdDebug () << "CommandList::saveOptions" << endl; 00123 config->setGroup ("usercommands"); 00124 for (unsigned int i = 0; i < count (); i++) 00125 { -00126 config->writeEntry (QString("cmd%1").arg(i), at(i)->m_name); -00127 config->writeEntry (QString("path%1").arg(i), at(i)->m_path); -00128 config->writeEntry (QString("id%1").arg(i), at(i)->m_id); -00129 config->writeEntry (QString("modal%1").arg(i), at(i)->m_waitForCommand); +00126 config->writeEntry (TQString("cmd%1").arg(i), at(i)->m_name); +00127 config->writeEntry (TQString("path%1").arg(i), at(i)->m_path); +00128 config->writeEntry (TQString("id%1").arg(i), at(i)->m_id); +00129 config->writeEntry (TQString("modal%1").arg(i), at(i)->m_waitForCommand); 00130 } 00131 }
Generated on Wed May 16 21:15:18 2007 for kshowmail by  -- cgit v1.2.1