diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
commit | 0a80cfd57d271dd44221467efb426675fa470356 (patch) | |
tree | 6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/kvilib/tal/kvi_tal_toolbar.cpp | |
parent | 3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff) | |
download | kvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip |
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kvilib/tal/kvi_tal_toolbar.cpp')
-rw-r--r-- | src/kvilib/tal/kvi_tal_toolbar.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/kvilib/tal/kvi_tal_toolbar.cpp b/src/kvilib/tal/kvi_tal_toolbar.cpp index f54dc973..80ac44aa 100644 --- a/src/kvilib/tal/kvi_tal_toolbar.cpp +++ b/src/kvilib/tal/kvi_tal_toolbar.cpp @@ -27,7 +27,7 @@ #ifdef COMPILE_KDE_SUPPORT - KviTalToolBar::KviTalToolBar(const QString &label,QMainWindow *w,QT_TOOLBARDOCK_TYPE dock,bool bNewLine,const char * nam) + KviTalToolBar::KviTalToolBar(const TQString &label,TQMainWindow *w,TQT_TOOLBARDOCK_TYPE dock,bool bNewLine,const char * nam) : KToolBar(w,dock,bNewLine,nam) { setLabel(label); @@ -43,32 +43,32 @@ #ifdef COMPILE_USE_QT4 - KviTalToolBar::KviTalToolBar(const QString &label,QMainWindow *w,QT_TOOLBARDOCK_TYPE dock,bool bNewLine,const char * nam) + KviTalToolBar::KviTalToolBar(const TQString &label,TQMainWindow *w,TQT_TOOLBARDOCK_TYPE dock,bool bNewLine,const char * nam) //: Q3ToolBar(label,w,dock,bNewLine,nam) - : QToolBar(label,w) + : TQToolBar(label,w) { - //setFrameStyle(QFrame::NoFrame); + //setFrameStyle(TQFrame::NoFrame); setObjectName(nam); - if(!layout()) - this->setLayout(new QBoxLayout(QBoxLayout::LeftToRight)); + if(!tqlayout()) + this->setLayout(new TQBoxLayout(TQBoxLayout::LeftToRight)); w->addToolBar(dock,this); } - KviTalToolBar::KviTalToolBar(QMainWindow *w,const char * name) - : QToolBar(w) + KviTalToolBar::KviTalToolBar(TQMainWindow *w,const char * name) + : TQToolBar(w) { - //setFrameStyle(QFrame::NoFrame); + //setFrameStyle(TQFrame::NoFrame); setObjectName(name); - if(!layout()) - this->setLayout(new QBoxLayout(QBoxLayout::LeftToRight)); + if(!tqlayout()) + this->setLayout(new TQBoxLayout(TQBoxLayout::LeftToRight)); w->addToolBar(this); } - QBoxLayout * KviTalToolBar::boxLayout() + TQBoxLayout * KviTalToolBar::boxLayout() { - return (QBoxLayout*)this->layout(); + return (TQBoxLayout*)this->tqlayout(); } - void KviTalToolBar::setBoxLayout(QBoxLayout * l) + void KviTalToolBar::setBoxLayout(TQBoxLayout * l) { this->setLayout(l); } @@ -80,19 +80,19 @@ void KviTalToolBar::setUsesBigPixmaps(bool b) { - if(b)setIconSize(QSize(48,48)); - else setIconSize(QSize(22,22)); + if(b)setIconSize(TQSize(48,48)); + else setIconSize(TQSize(22,22)); } #include "kvi_tal_toolbar_qt4.moc" #else - KviTalToolBar::KviTalToolBar(const QString &label,QMainWindow *w,QT_TOOLBARDOCK_TYPE dock,bool bNewLine,const char * nam) - : QToolBar(label,w,dock,bNewLine,nam) + KviTalToolBar::KviTalToolBar(const TQString &label,TQMainWindow *w,TQT_TOOLBARDOCK_TYPE dock,bool bNewLine,const char * nam) + : TQToolBar(label,w,dock,bNewLine,nam) { } - KviTalToolBar::KviTalToolBar(QMainWindow *w,const char * name) - : QToolBar(w,name) + KviTalToolBar::KviTalToolBar(TQMainWindow *w,const char * name) + : TQToolBar(w,name) { } |