summaryrefslogtreecommitdiffstats
path: root/src/variouswidgets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/variouswidgets.cpp')
-rw-r--r--src/variouswidgets.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/variouswidgets.cpp b/src/variouswidgets.cpp
index d24725a..31d2c64 100644
--- a/src/variouswidgets.cpp
+++ b/src/variouswidgets.cpp
@@ -18,7 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlineedit.h>
#include <tqlabel.h>
#include <tqsizegrip.h>
@@ -42,14 +42,14 @@ RunCommandRequester::RunCommandRequester(const TQString &runCommand, const TQStr
{
m_message = message;
- TQHBoxLayout *tqlayout = new TQHBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
+ TQHBoxLayout *layout = new TQHBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
m_runCommand = new TQLineEdit(runCommand, this);
TQPushButton *pb = new TQPushButton(/*"C&hoose..."*/i18n("..."), this);
- pb->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
+ pb->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
- tqlayout->addWidget(m_runCommand);
- tqlayout->addWidget(pb);
+ layout->addWidget(m_runCommand);
+ layout->addWidget(pb);
connect( pb, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSelCommand()) );
}
@@ -129,11 +129,11 @@ ViewSizeDialog::ViewSizeDialog(TQWidget *parent, int w, int h)
"Resize the window to select the image size\n"
"and close it or press Escape to accept changes."), this);
label->move(8, 8);
- label->setFixedSize( label->tqsizeHint() );
+ label->setFixedSize( label->sizeHint() );
// setSizeGripEnabled(true) doesn't work (the grip stay at the same place), so we emulate it:
m_sizeGrip = new TQSizeGrip(this);
- m_sizeGrip->setFixedSize( m_sizeGrip->tqsizeHint() );
+ m_sizeGrip->setFixedSize( m_sizeGrip->sizeHint() );
setGeometry(x(), y(), w, h);
}
@@ -144,7 +144,7 @@ ViewSizeDialog::~ViewSizeDialog()
void ViewSizeDialog::resizeEvent(TQResizeEvent *)
{
- setCaption( i18n("%1 by %2 pixels").tqarg(TQString::number(width())).tqarg(TQString::number(height())) );
+ setCaption( i18n("%1 by %2 pixels").arg(TQString::number(width())).arg(TQString::number(height())) );
m_sizeGrip->move( width() - m_sizeGrip->width(), height() - m_sizeGrip->height() );
}
@@ -269,7 +269,7 @@ FontSizeCombo::FontSizeCombo(bool rw, bool withDefault, TQWidget *parent, const
insertItem(i18n("(Default)"));
TQFontDatabase fontDB;
- TQValueList<int> sizes = fontDB.tqstandardSizes();
+ TQValueList<int> sizes = fontDB.standardSizes();
for (TQValueList<int>::Iterator it = sizes.begin(); it != sizes.end(); ++it)
insertItem(TQString::number(*it));