diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kregexpeditor/KMultiFormListBox/indexWindow.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kregexpeditor/KMultiFormListBox/indexWindow.cpp')
-rw-r--r-- | kregexpeditor/KMultiFormListBox/indexWindow.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kregexpeditor/KMultiFormListBox/indexWindow.cpp b/kregexpeditor/KMultiFormListBox/indexWindow.cpp index 362d012..dccb184 100644 --- a/kregexpeditor/KMultiFormListBox/indexWindow.cpp +++ b/kregexpeditor/KMultiFormListBox/indexWindow.cpp @@ -24,13 +24,13 @@ #include "indexWindow.h" #include <iostream> -#include <qlayout.h> +#include <tqlayout.h> -indexWindow::indexWindow() : QWidget(0,"", WStyle_Customize | WType_Popup) +indexWindow::indexWindow() : TQWidget(0,"", WStyle_Customize | WType_Popup) { - lb = new QListBox(this); - connect(lb,SIGNAL(selected(int)), this, SLOT(lbSelected(int))); - QHBoxLayout *lay = new QHBoxLayout(this); + lb = new TQListBox(this); + connect(lb,TQT_SIGNAL(selected(int)), this, TQT_SLOT(lbSelected(int))); + TQHBoxLayout *lay = new TQHBoxLayout(this); lay->addWidget(lb); lbFinish = false; } @@ -50,20 +50,20 @@ void indexWindow::finish(int index) } -void indexWindow::insertItem(QString txt) +void indexWindow::insertItem(TQString txt) { lb->insertItem(txt); } -void indexWindow::hideEvent(QHideEvent *h) +void indexWindow::hideEvent(TQHideEvent *h) { - QWidget::hideEvent(h); + TQWidget::hideEvent(h); if (!lbFinish) finish(-1); } -int indexWindow::exec(const QPoint & /*start*/, int /*width*/) +int indexWindow::exec(const TQPoint & /*start*/, int /*width*/) { // This code is not xinerama safe, on the other hand this part of the widget // is not used in KRegExpEditor. This is part of a widget which has @@ -76,7 +76,7 @@ int indexWindow::exec(const QPoint & /*start*/, int /*width*/) int elm_h = lb->item(0)->height(lb) * lb->count(); elm_h += 2*lb->frameWidth(); - QWidget *desktop = QApplication::desktop(); + TQWidget *desktop = TQApplication::desktop(); int desktop_h = desktop->height(); int rest_h = desktop_h - start.y(); int below_h = QMAX(rest_h, 200); |