summaryrefslogtreecommitdiffstats
path: root/ksystemlog/src/specificFileList.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 08:42:58 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 08:42:58 +0000
commit9902f14bc9162d7b286b3f99b27989237db9f264 (patch)
treeb95be3be1992566418b2c2e2ed16bdb29453a8d4 /ksystemlog/src/specificFileList.cpp
parent437249c71459e9ea15be70788687cb8695e249c2 (diff)
downloadksystemlog-9902f14bc9162d7b286b3f99b27989237db9f264.tar.gz
ksystemlog-9902f14bc9162d7b286b3f99b27989237db9f264.zip
TQt4 port ksystemlog
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ksystemlog@1239000 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksystemlog/src/specificFileList.cpp')
-rw-r--r--ksystemlog/src/specificFileList.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/ksystemlog/src/specificFileList.cpp b/ksystemlog/src/specificFileList.cpp
index ef3047d..b92a623 100644
--- a/ksystemlog/src/specificFileList.cpp
+++ b/ksystemlog/src/specificFileList.cpp
@@ -19,12 +19,12 @@
***************************************************************************/
-#include <qlayout.h>
-#include <qvbox.h>
-#include <qhbox.h>
-#include <qtooltip.h>
-#include <qlabel.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqvbox.h>
+#include <tqhbox.h>
+#include <tqtooltip.h>
+#include <tqlabel.h>
+#include <tqwhatsthis.h>
// KDE includes
#include <klocale.h>
@@ -40,18 +40,18 @@
#include "specificFileList.h"
-SpecificFileList::SpecificFileList(QWidget* parent, QString description) :
- FileList(parent, description)
+SpecificFileList::SpecificFileList(TQWidget* tqparent, TQString description) :
+ FileList(tqparent, description)
{
- changeItem=new QPushButton(SmallIconSet("colorize"), i18n("&Change Status..."), buttons);
- connect(changeItem, SIGNAL(clicked()), this, SLOT(changeItemType()));
- QToolTip::add(changeItem, i18n("Change the level of the current file(s)"));
- QWhatsThis::add(changeItem, i18n("<qt>Changes the level of the current file(s). See KSystemLog documentation for more information about each log level.</qt>"));
+ changeItem=new TQPushButton(SmallIconSet("colorize"), i18n("&Change tqStatus..."), buttons);
+ connect(changeItem, TQT_SIGNAL(clicked()), this, TQT_SLOT(changeItemType()));
+ TQToolTip::add(changeItem, i18n("Change the level of the current file(s)"));
+ TQWhatsThis::add(changeItem, i18n("<qt>Changes the level of the current file(s). See KSystemLog documentation for more information about each log level.</qt>"));
fileListMenu->insertSeparator();
- fileListMenu->insertItem(SmallIcon("colorize"), i18n("&Change Status"), this, SLOT(changeItemType()));
+ fileListMenu->insertItem(SmallIcon("colorize"), i18n("&Change tqStatus"), this, TQT_SLOT(changeItemType()));
changeItem->setEnabled(false);
@@ -62,11 +62,11 @@ SpecificFileList::~SpecificFileList() {
}
-void SpecificFileList::insertItem(QString& item) {
+void SpecificFileList::insertItem(TQString& item) {
this->insertItem(Globals::informationLogLevel, item);
}
-void SpecificFileList::insertItem(LogLevel* level, QString& item) {
+void SpecificFileList::insertItem(LogLevel* level, TQString& item) {
fileList->insertItem(level->pixmap, item);
levels[fileList->item(fileList->count()-1)]=level->id;
}
@@ -87,7 +87,7 @@ void SpecificFileList::addItem() {
for(it=urlList.begin(); it!=urlList.end(); ++it) {
url=*it;
if (isValidFile(url)) {
- QString path=url.path();
+ TQString path=url.path();
this->insertItem(Globals::informationLogLevel, path);
}
}
@@ -109,20 +109,20 @@ void SpecificFileList::changeItemType() {
KDialogBase dialog(this, "select_type", true, i18n("Selecting File Type"), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok);
- QVBox topContents(&dialog);
+ TQVBox topContents(&dialog);
topContents.setSpacing(8);
- topContents.setMinimumSize(QSize(100, 230));
+ topContents.setMinimumSize(TQSize(100, 230));
- QLabel text(i18n("Please select the type of this file:"), &topContents);
+ TQLabel text(i18n("Please select the type of this file:"), &topContents);
KListBox choiceList(&topContents, "type_list");
- QToolTip::add(choiceList.viewport(), i18n("List of existing log levels"));
- QWhatsThis::add(choiceList.viewport(), i18n("<qt>This is the list of all existing log levels. Please select one of them to be used for the selected files of the list.</qt>"));
+ TQToolTip::add(choiceList.viewport(), i18n("List of existing log levels"));
+ TQWhatsThis::add(choiceList.viewport(), i18n("<qt>This is the list of all existing log levels. Please select one of them to be used for the selected files of the list.</qt>"));
//TODO Move this code to a specific class
- //connect(&choiceList, SIGNAL(doubleClicked(QListBoxItem*)), &dialog, SLOT(okClicked()));
+ //connect(&choiceList, TQT_SIGNAL(doubleClicked(TQListBoxItem*)), &dialog, TQT_SLOT(okClicked()));
- QPtrListIterator<LogLevel> itLevel(Globals::logLevels);
+ TQPtrListIterator<LogLevel> itLevel(Globals::logLevels);
LogLevel* level=itLevel.current();
while (level!=NULL) {
@@ -139,7 +139,7 @@ void SpecificFileList::changeItemType() {
int choice=dialog.exec();
- if (choice==QDialog::Accepted) {
+ if (choice==TQDialog::Accepted) {
int count=fileList->count();
@@ -167,7 +167,7 @@ LogLevel* SpecificFileList::getLevel(int i) {
}
-void SpecificFileList::saveConfig(QStringList& filePathList, QValueList<int>& logLevelList) {
+void SpecificFileList::saveConfig(TQStringList& filePathList, TQValueList<int>& logLevelList) {
int count=fileList->count();
for (int i=0; i<count; i++) {
@@ -177,7 +177,7 @@ void SpecificFileList::saveConfig(QStringList& filePathList, QValueList<int>& lo
}
-void SpecificFileList::readConfig(QStringList& stringList, QValueList<int>& valueList) {
+void SpecificFileList::readConfig(TQStringList& stringList, TQValueList<int>& valueList) {
//A little security test
if (stringList.size() != valueList.size()) {
@@ -187,8 +187,8 @@ void SpecificFileList::readConfig(QStringList& stringList, QValueList<int>& valu
LogLevel* level;
- QStringList::Iterator itString=stringList.begin();
- QValueList<int>::Iterator itInt=valueList.begin();
+ TQStringList::Iterator itString=stringList.begin();
+ TQValueList<int>::Iterator itInt=valueList.begin();
while(itString!=stringList.end()) {
if (*itInt>=0 && *itInt<(int) Globals::logLevels.count())