diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:49:40 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:49:40 -0600 |
commit | 808e453c56036211f57482ed847d54aca01bba68 (patch) | |
tree | 75515d5768dea10d4fbe4cd772e0a89c1c4b3aa9 /kppp/modemcmds.cpp | |
parent | cd9b9ed7fd0ac8a75106148254aa58e2e5c04863 (diff) | |
download | tdenetwork-808e453c56036211f57482ed847d54aca01bba68.tar.gz tdenetwork-808e453c56036211f57482ed847d54aca01bba68.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kppp/modemcmds.cpp')
-rw-r--r-- | kppp/modemcmds.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kppp/modemcmds.cpp b/kppp/modemcmds.cpp index 2416e4c5..f867bf78 100644 --- a/kppp/modemcmds.cpp +++ b/kppp/modemcmds.cpp @@ -24,7 +24,7 @@ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <tqlayout.h> +#include <layout.h> #include <tqslider.h> #include <kbuttonbox.h> #include <stdlib.h> @@ -40,10 +40,10 @@ #include <tqlabel.h> -#define ADJUSTEDIT(e) e->setText("XXXXXXXXqy"); e->setMinimumSize(e->tqsizeHint()); e->setFixedHeight(e->tqsizeHint().height()); e->setText(""); e->setMaxLength(MODEMSTR_SIZE); +#define ADJUSTEDIT(e) e->setText("XXXXXXXXqy"); e->setMinimumSize(e->sizeHint()); e->setFixedHeight(e->sizeHint().height()); e->setText(""); e->setMaxLength(MODEMSTR_SIZE); // a little trick to make the label look like a disabled lineedit -#define FORMATSLIDERLABEL(l) l->setFixedWidth(l->tqsizeHint().width()); l->setFixedHeight(TQLineEdit(dummyWidget).tqsizeHint().height()); l->tqsetAlignment(AlignCenter); l->setFrameStyle(TQFrame::WinPanel|TQFrame::Sunken); l->setLineWidth(2); +#define FORMATSLIDERLABEL(l) l->setFixedWidth(l->sizeHint().width()); l->setFixedHeight(TQLineEdit(dummyWidget).sizeHint().height()); l->setAlignment(AlignCenter); l->setFrameStyle(TQFrame::WinPanel|TQFrame::Sunken); l->setLineWidth(2); ModemCommands::ModemCommands(TQWidget *parent, const char *name) : KDialogBase(parent, name, true, i18n("Edit Modem Commands"), Ok|Cancel) @@ -55,7 +55,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) const int GRIDROWS = 22; int row = 0; - // toplevel tqlayout + // toplevel layout TQVBoxLayout *tl = new TQVBoxLayout(dummyWidget, 10, 4); // add grid + frame @@ -72,7 +72,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) preinitslider = new TQSlider(0, 300, 1, 0, Qt::Horizontal, dummyWidget); - preinitslider->setFixedHeight(preinitslider->tqsizeHint().height()); + preinitslider->setFixedHeight(preinitslider->sizeHint().height()); connect(preinitslider, TQT_SIGNAL(valueChanged(int)), lpreinitslider, TQT_SLOT(setNum(int))); l2->addWidget(lpreinitslider, 0); @@ -83,7 +83,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) for(int i = 0; i < PPPData::NumInitStrings; i++) { initstr[i] = new TQLineEdit(dummyWidget); - TQLabel *initLabel = new TQLabel(i18n("Initialization string %1:").tqarg(i + 1), + TQLabel *initLabel = new TQLabel(i18n("Initialization string %1:").arg(i + 1), dummyWidget); ADJUSTEDIT(initstr[i]); l1->addWidget(initLabel, row, 1); @@ -96,7 +96,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) FORMATSLIDERLABEL(linitslider); initslider = new TQSlider(1, 300, 1, 0, Qt::Horizontal, dummyWidget); - initslider->setFixedHeight(initslider->tqsizeHint().height()); + initslider->setFixedHeight(initslider->sizeHint().height()); connect(initslider, TQT_SIGNAL(valueChanged(int)), linitslider, TQT_SLOT(setNum(int))); l3->addWidget(linitslider, 0); @@ -112,7 +112,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) FORMATSLIDERLABEL(ldurationslider); durationslider = new TQSlider(1, 255, 1, 0, Qt::Horizontal, dummyWidget); - durationslider->setFixedHeight(durationslider->tqsizeHint().height()); + durationslider->setFixedHeight(durationslider->sizeHint().height()); connect(durationslider, TQT_SIGNAL(valueChanged(int)), ldurationslider, TQT_SLOT(setNum(int))); l4->addWidget(ldurationslider, 0); @@ -228,7 +228,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) slider = new TQSlider(0, 255, 1, 0, Qt::Horizontal, dummyWidget); - slider->setFixedHeight(slider->tqsizeHint().height()); + slider->setFixedHeight(slider->sizeHint().height()); connect(slider, TQT_SIGNAL(valueChanged(int)), lslider, TQT_SLOT(setNum(int))); l5->addWidget(lslider, 0); @@ -242,14 +242,14 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name) TQHBoxLayout *l6 = new TQHBoxLayout; l1->addLayout(l6, row++, 2); volume_off = new TQLineEdit(dummyWidget); - volume_off->setFixedHeight(volume_off->tqsizeHint().height()); - volume_off->setMinimumWidth((int)(volume_off->tqsizeHint().width() / 2)); + volume_off->setFixedHeight(volume_off->sizeHint().height()); + volume_off->setMinimumWidth((int)(volume_off->sizeHint().width() / 2)); volume_medium = new TQLineEdit(dummyWidget); - volume_medium->setFixedHeight(volume_medium->tqsizeHint().height()); - volume_medium->setMinimumWidth((int)(volume_medium->tqsizeHint().width() / 2)); + volume_medium->setFixedHeight(volume_medium->sizeHint().height()); + volume_medium->setMinimumWidth((int)(volume_medium->sizeHint().width() / 2)); volume_high = new TQLineEdit(dummyWidget); - volume_high->setFixedHeight(volume_high->tqsizeHint().height()); - volume_high->setMinimumWidth((int)(volume_high->tqsizeHint().width() / 2)); + volume_high->setFixedHeight(volume_high->sizeHint().height()); + volume_high->setMinimumWidth((int)(volume_high->sizeHint().width() / 2)); l6->addWidget(volume_off); l6->addWidget(volume_medium); l6->addWidget(volume_high); |