diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /lib/widgets/propeditor/qeditlistbox.cpp | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/widgets/propeditor/qeditlistbox.cpp')
-rw-r--r-- | lib/widgets/propeditor/qeditlistbox.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/widgets/propeditor/qeditlistbox.cpp b/lib/widgets/propeditor/qeditlistbox.cpp index db40e8e7..565786f0 100644 --- a/lib/widgets/propeditor/qeditlistbox.cpp +++ b/lib/widgets/propeditor/qeditlistbox.cpp @@ -46,24 +46,24 @@ public: int buttons; }; -QEditListBox::QEditListBox(TQWidget *parent, const char *name, +QEditListBox::QEditListBox(TQWidget *tqparent, const char *name, bool checkAtEntering, int buttons ) - :TQGroupBox(parent, name ) + :TQGroupBox(tqparent, name ) { init( checkAtEntering, buttons ); } -QEditListBox::QEditListBox(const TQString& title, TQWidget *parent, +QEditListBox::QEditListBox(const TQString& title, TQWidget *tqparent, const char *name, bool checkAtEntering, int buttons) - :TQGroupBox(title, parent, name ) + :TQGroupBox(title, tqparent, name ) { init( checkAtEntering, buttons ); } QEditListBox::QEditListBox(const TQString& title, const CustomEditor& custom, - TQWidget *parent, const char *name, + TQWidget *tqparent, const char *name, bool checkAtEntering, int buttons) - :TQGroupBox(title, parent, name ) + :TQGroupBox(title, tqparent, name ) { m_lineEdit = custom.lineEdit(); init( checkAtEntering, buttons, custom.representationWidget() ); @@ -92,7 +92,7 @@ void QEditListBox::init( bool checkAtEntering, int buttons, servNewButton = servRemoveButton = servUpButton = servDownButton = 0L; - setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, + tqsetSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding)); TQWidget * gb = this; @@ -185,7 +185,7 @@ void QEditListBox::typedSomething(const TQString& text) else { StringComparisonMode mode = (StringComparisonMode) (ExactMatch | CaseSensitive ); - bool enable = (m_listBox->findItem( text, mode ) == 0L); + bool enable = (m_listBox->tqfindItem( text, mode ) == 0L); servNewButton->setEnabled( enable ); } } @@ -256,7 +256,7 @@ void QEditListBox::addItem() else { StringComparisonMode mode = (StringComparisonMode) (ExactMatch | CaseSensitive ); - alreadyInList =(m_listBox->findItem(currentTextLE, mode) != 0); + alreadyInList =(m_listBox->tqfindItem(currentTextLE, mode) != 0); } } @@ -298,7 +298,7 @@ void QEditListBox::removeItem() m_listBox->removeItem( selected ); if ( count() > 0 ) - m_listBox->setSelected( QMIN( selected, count() - 1 ), true ); + m_listBox->setSelected( TQMIN( selected, count() - 1 ), true ); emit changed(); emit removed( removedText ); |