diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kopainter/koFrameButton.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kopainter/koFrameButton.cc')
-rw-r--r-- | lib/kopainter/koFrameButton.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/kopainter/koFrameButton.cc b/lib/kopainter/koFrameButton.cc index cb752363..80610422 100644 --- a/lib/kopainter/koFrameButton.cc +++ b/lib/kopainter/koFrameButton.cc @@ -20,8 +20,8 @@ #include "koFrameButton.h" -KoFrameButton::KoFrameButton(QWidget *parent, const char *name): -QLabel(parent, name) +KoFrameButton::KoFrameButton(TQWidget *tqparent, const char *name): +TQLabel(tqparent, name) { setAutoResize(true); setFrameStyle(Panel | Raised); @@ -31,19 +31,19 @@ QLabel(parent, name) mToggle = false; } -KoFrameButton::KoFrameButton(const QString &text, QWidget *parent, const char *name): -QLabel(parent, name) +KoFrameButton::KoFrameButton(const TQString &text, TQWidget *tqparent, const char *name): +TQLabel(tqparent, name) { setFrameStyle(Panel | Raised); setLineWidth(1); setText(text); - setAlignment(AlignHCenter | AlignVCenter); + tqsetAlignment(AlignHCenter | AlignVCenter); mActive = false; mToggle = false; } -KoFrameButton::KoFrameButton(const QPixmap &pixmap, QWidget *parent, const char *name): -QLabel(parent, name) +KoFrameButton::KoFrameButton(const TQPixmap &pixmap, TQWidget *tqparent, const char *name): +TQLabel(tqparent, name) { setFrameStyle(Panel | Raised); setLineWidth(1); @@ -52,12 +52,12 @@ QLabel(parent, name) mToggle = false; } -void KoFrameButton::mousePressEvent(QMouseEvent *) +void KoFrameButton::mousePressEvent(TQMouseEvent *) { setFrameStyle(Panel | Sunken); } -void KoFrameButton::mouseReleaseEvent(QMouseEvent *) +void KoFrameButton::mouseReleaseEvent(TQMouseEvent *) { if(mToggle) { @@ -93,10 +93,10 @@ void KoFrameButton::setToggleButton(bool v) mToggle = v; } -void KoFrameButton::setText(const QString &t) +void KoFrameButton::setText(const TQString &t) { mText = t; - QLabel::setText(t); + TQLabel::setText(t); } #include "koFrameButton.moc" |