diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/kauthicon.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kauthicon.cpp')
-rw-r--r-- | kdeui/kauthicon.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kdeui/kauthicon.cpp b/kdeui/kauthicon.cpp index 9dd567b18..d4c18a114 100644 --- a/kdeui/kauthicon.cpp +++ b/kdeui/kauthicon.cpp @@ -21,9 +21,9 @@ #include <unistd.h> // For getuid -#include <qlayout.h> -#include <qlabel.h> -#include <qtimer.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqtimer.h> #include <klocale.h> @@ -91,21 +91,21 @@ static const char * const openlock_xpm[] = { " ", " "}; -KAuthIcon::KAuthIcon(QWidget *parent, const char *name) - : QWidget(parent, name), +KAuthIcon::KAuthIcon(TQWidget *parent, const char *name) + : TQWidget(parent, name), lockPM( const_cast< const char** >( lock_xpm)), openLockPM( const_cast< const char** >(openlock_xpm)) { lockText = i18n("Editing disabled"); openLockText = i18n("Editing enabled"); - lockBox = new QLabel(this); - lockBox->setFrameStyle(QFrame::WinPanel|QFrame::Raised); + lockBox = new TQLabel(this); + lockBox->setFrameStyle(TQFrame::WinPanel|TQFrame::Raised); lockBox->setPixmap(lockPM); lockBox->setFixedSize(lockBox->sizeHint()); - lockLabel = new QLabel(this); - lockLabel->setFrameStyle(QFrame::NoFrame); + lockLabel = new TQLabel(this); + lockLabel->setFrameStyle(TQFrame::NoFrame); // set fixed size of this frame to whichever phrase is longer if (lockLabel->fontMetrics().boundingRect(lockText).width() > @@ -117,7 +117,7 @@ KAuthIcon::KAuthIcon(QWidget *parent, const char *name) lockLabel->setMinimumSize(lockLabel->sizeHint()); lockLabel->setText(lockText); - layout = new QHBoxLayout(this); + layout = new TQHBoxLayout(this); layout->addWidget(lockBox, 0, AlignLeft|AlignVCenter); layout->addSpacing(5); @@ -132,7 +132,7 @@ KAuthIcon::~KAuthIcon() } -QSize KAuthIcon::sizeHint() const +TQSize KAuthIcon::sizeHint() const { return layout->minimumSize(); } @@ -140,7 +140,7 @@ QSize KAuthIcon::sizeHint() const /************************************************************************/ -KRootPermsIcon::KRootPermsIcon(QWidget *parent, const char *name) +KRootPermsIcon::KRootPermsIcon(TQWidget *parent, const char *name) : KAuthIcon(parent, name) { updateStatus(); @@ -165,8 +165,8 @@ void KRootPermsIcon::updateStatus() /************************************************************************/ -KWritePermsIcon::KWritePermsIcon(const QString & fileName, - QWidget *parent, const char *name) +KWritePermsIcon::KWritePermsIcon(const TQString & fileName, + TQWidget *parent, const char *name) : KAuthIcon(parent, name) { fi.setFile(fileName); |