Update various qt function definitions and static methods for tqt3

pull/1/head
Timothy Pearson 12 years ago
parent 23e0affc4d
commit bf80a27386

@ -473,8 +473,8 @@ void KCalculator::setupStatusbar(void)
TQWidget* KCalculator::setupNumericKeys(TQWidget *parent) TQWidget* KCalculator::setupNumericKeys(TQWidget *parent)
{ {
Q_CHECK_PTR(mSmallPage); TQ_CHECK_PTR(mSmallPage);
Q_CHECK_PTR(mLargePage); TQ_CHECK_PTR(mLargePage);
TQWidget *thisPage = new TQWidget(parent); TQWidget *thisPage = new TQWidget(parent);
@ -743,7 +743,7 @@ TQWidget* KCalculator::setupNumericKeys(TQWidget *parent)
void KCalculator::setupLogicKeys(TQWidget *parent) void KCalculator::setupLogicKeys(TQWidget *parent)
{ {
Q_CHECK_PTR(parent); TQ_CHECK_PTR(parent);
KCalcButton *tmp_pb; KCalcButton *tmp_pb;
@ -796,7 +796,7 @@ void KCalculator::setupLogicKeys(TQWidget *parent)
void KCalculator::setupScientificKeys(TQWidget *parent) void KCalculator::setupScientificKeys(TQWidget *parent)
{ {
Q_CHECK_PTR(parent); TQ_CHECK_PTR(parent);
KCalcButton *tmp_pb; KCalcButton *tmp_pb;
@ -878,7 +878,7 @@ void KCalculator::setupScientificKeys(TQWidget *parent)
void KCalculator::setupStatisticKeys(TQWidget *parent) void KCalculator::setupStatisticKeys(TQWidget *parent)
{ {
Q_CHECK_PTR(parent); TQ_CHECK_PTR(parent);
KCalcButton *tmp_pb; KCalcButton *tmp_pb;
@ -951,7 +951,7 @@ void KCalculator::setupStatisticKeys(TQWidget *parent)
void KCalculator::setupConstantsKeys(TQWidget *parent) void KCalculator::setupConstantsKeys(TQWidget *parent)
{ {
Q_CHECK_PTR(parent); TQ_CHECK_PTR(parent);
ConstButtonGroup = new TQButtonGroup(0, "Const-Button-Group"); ConstButtonGroup = new TQButtonGroup(0, "Const-Button-Group");
connect(ConstButtonGroup, TQT_SIGNAL(clicked(int)), TQT_SLOT(slotConstclicked(int))); connect(ConstButtonGroup, TQT_SIGNAL(clicked(int)), TQT_SLOT(slotConstclicked(int)));

@ -52,7 +52,7 @@ DiskList::DiskList(TQObject *parent, const char *name)
disks->setAutoDelete(TRUE); disks->setAutoDelete(TRUE);
// BackgroundProcesses **************************************** // BackgroundProcesses ****************************************
dfProc = new KProcess(); Q_CHECK_PTR(dfProc); dfProc = new KProcess(); TQ_CHECK_PTR(dfProc);
connect( dfProc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int) ), connect( dfProc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int) ),
this, TQT_SLOT (receivedDFStdErrOut(KProcess *, char *, int)) ); this, TQT_SLOT (receivedDFStdErrOut(KProcess *, char *, int)) );
connect(dfProc,TQT_SIGNAL(processExited(KProcess *) ), connect(dfProc,TQT_SIGNAL(processExited(KProcess *) ),
@ -186,7 +186,7 @@ TQFile f(FSTAB);
if ( (!s.isEmpty() ) && (s.find(DELIMITER)!=0) ) { if ( (!s.isEmpty() ) && (s.find(DELIMITER)!=0) ) {
// not empty or commented out by '#' // not empty or commented out by '#'
// kdDebug() << "GOT: [" << s << "]" << endl; // kdDebug() << "GOT: [" << s << "]" << endl;
disk = new DiskEntry();// Q_CHECK_PTR(disk); disk = new DiskEntry();// TQ_CHECK_PTR(disk);
disk->setMounted(FALSE); disk->setMounted(FALSE);
disk->setDeviceName(expandEscapes(s.left(s.find(BLANK)))); disk->setDeviceName(expandEscapes(s.left(s.find(BLANK))));
s=s.remove(0,s.find(BLANK)+1 ); s=s.remove(0,s.find(BLANK)+1 );
@ -293,7 +293,7 @@ void DiskList::dfDone()
s=t.readLine(); s=t.readLine();
s=s.simplifyWhiteSpace(); s=s.simplifyWhiteSpace();
if ( !s.isEmpty() ) { if ( !s.isEmpty() ) {
disk = new DiskEntry(); Q_CHECK_PTR(disk); disk = new DiskEntry(); TQ_CHECK_PTR(disk);
if (s.find(BLANK)<0) // devicename was too long, rest in next line if (s.find(BLANK)<0) // devicename was too long, rest in next line
if ( !t.eof() ) { // just appends the next line if ( !t.eof() ) { // just appends the next line

@ -55,7 +55,7 @@ void DiskEntry::init()
// BackgroundProcesses **************************************** // BackgroundProcesses ****************************************
sysProc = new KShellProcess(); Q_CHECK_PTR(sysProc); sysProc = new KShellProcess(); TQ_CHECK_PTR(sysProc);
connect( sysProc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int) ), connect( sysProc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int) ),
this, TQT_SLOT (receivedSysStdErrOut(KProcess *, char *, int)) ); this, TQT_SLOT (receivedSysStdErrOut(KProcess *, char *, int)) );
connect( sysProc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int) ), connect( sysProc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int) ),

@ -40,7 +40,7 @@ KDFTopLevel::KDFTopLevel(TQWidget *, const char *name)
: KMainWindow(0, name) : KMainWindow(0, name)
{ {
kdf = new KDFWidget(this,"kdf",FALSE); kdf = new KDFWidget(this,"kdf",FALSE);
Q_CHECK_PTR(kdf); TQ_CHECK_PTR(kdf);
(void) new KAction( i18n( "&Update" ), 0, TQT_TQOBJECT(kdf), TQT_SLOT( updateDF() ), actionCollection(), "updatedf" ); (void) new KAction( i18n( "&Update" ), 0, TQT_TQOBJECT(kdf), TQT_SLOT( updateDF() ), actionCollection(), "updatedf" );
KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection()); KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
@ -77,7 +77,7 @@ int main(int argc, char **argv)
for( int n=1; KDFTopLevel::canBeRestored(n); n++ ) for( int n=1; KDFTopLevel::canBeRestored(n); n++ )
{ {
KDFTopLevel *ktl = new KDFTopLevel(); KDFTopLevel *ktl = new KDFTopLevel();
Q_CHECK_PTR(ktl); TQ_CHECK_PTR(ktl);
app.setMainWidget(ktl); app.setMainWidget(ktl);
ktl->restore(n); ktl->restore(n);
} }
@ -85,7 +85,7 @@ int main(int argc, char **argv)
else else
{ {
KDFTopLevel *ktl = new KDFTopLevel(); KDFTopLevel *ktl = new KDFTopLevel();
Q_CHECK_PTR(ktl); TQ_CHECK_PTR(ktl);
ktl->show(); ktl->show();
} }

@ -98,7 +98,7 @@ KDFConfigWidget::KDFConfigWidget(TQWidget *parent, const char *name, bool init)
gl->setColStretch( 1, 10 ); gl->setColStretch( 1, 10 );
mScroll = new TQScrollBar( this ); mScroll = new TQScrollBar( this );
Q_CHECK_PTR(mScroll); TQ_CHECK_PTR(mScroll);
mScroll->setOrientation( Qt::Horizontal ); mScroll->setOrientation( Qt::Horizontal );
mScroll->setSteps(1,20); mScroll->setSteps(1,20);
mScroll->setRange(0, 180 ); mScroll->setRange(0, 180 );
@ -106,7 +106,7 @@ KDFConfigWidget::KDFConfigWidget(TQWidget *parent, const char *name, bool init)
connect(mScroll,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(slotChanged())); connect(mScroll,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(slotChanged()));
mLCD = new TQLCDNumber( this ); mLCD = new TQLCDNumber( this );
Q_CHECK_PTR(mLCD); TQ_CHECK_PTR(mLCD);
mLCD->setNumDigits( 3 ); mLCD->setNumDigits( 3 );
mLCD->setSegmentStyle(TQLCDNumber::Filled); mLCD->setSegmentStyle(TQLCDNumber::Filled);
connect(mScroll,TQT_SIGNAL(valueChanged(int)),mLCD,TQT_SLOT(display(int))); connect(mScroll,TQT_SIGNAL(valueChanged(int)),mLCD,TQT_SLOT(display(int)));
@ -114,28 +114,28 @@ KDFConfigWidget::KDFConfigWidget(TQWidget *parent, const char *name, bool init)
text = i18n("Update frequency [seconds]. The value 0 disables update" ); text = i18n("Update frequency [seconds]. The value 0 disables update" );
TQLabel *label = new TQLabel( text, this ); TQLabel *label = new TQLabel( text, this );
Q_CHECK_PTR(label); TQ_CHECK_PTR(label);
gl->addWidget( label, 0, 1 ); gl->addWidget( label, 0, 1 );
label = new TQLabel( i18n("File manager (e.g. konsole -e mc %m):") ,this); label = new TQLabel( i18n("File manager (e.g. konsole -e mc %m):") ,this);
Q_CHECK_PTR(label); TQ_CHECK_PTR(label);
topLayout->addWidget( label ); topLayout->addWidget( label );
mFileManagerEdit = new TQLineEdit( this ); mFileManagerEdit = new TQLineEdit( this );
Q_CHECK_PTR(mFileManagerEdit); TQ_CHECK_PTR(mFileManagerEdit);
topLayout->addWidget( mFileManagerEdit ); topLayout->addWidget( mFileManagerEdit );
connect(mFileManagerEdit,TQT_SIGNAL(textChanged (const TQString &)),this,TQT_SLOT(slotChanged())); connect(mFileManagerEdit,TQT_SIGNAL(textChanged (const TQString &)),this,TQT_SLOT(slotChanged()));
text = i18n("Open file manager automatically on mount"); text = i18n("Open file manager automatically on mount");
mOpenMountCheck = new TQCheckBox(text, this ); mOpenMountCheck = new TQCheckBox(text, this );
Q_CHECK_PTR(mOpenMountCheck); TQ_CHECK_PTR(mOpenMountCheck);
topLayout->addWidget( mOpenMountCheck ); topLayout->addWidget( mOpenMountCheck );
connect(mOpenMountCheck,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotChanged())); connect(mOpenMountCheck,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotChanged()));
text = i18n("Pop up a window when a disk gets critically full"); text = i18n("Pop up a window when a disk gets critically full");
mPopupFullCheck = new TQCheckBox( text, this ); mPopupFullCheck = new TQCheckBox( text, this );
Q_CHECK_PTR(mPopupFullCheck); TQ_CHECK_PTR(mPopupFullCheck);
topLayout->addWidget( mPopupFullCheck ); topLayout->addWidget( mPopupFullCheck );
connect(mPopupFullCheck,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotChanged())); connect(mPopupFullCheck,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotChanged()));
} }

@ -83,7 +83,7 @@ MntConfigWidget::MntConfigWidget(TQWidget *parent, const char *name, bool init)
arg(mList->header()->label(MNTPNTCOL)). arg(mList->header()->label(MNTPNTCOL)).
arg(i18n("None")); arg(i18n("None"));
mGroupBox = new TQGroupBox( text, this ); mGroupBox = new TQGroupBox( text, this );
Q_CHECK_PTR(mGroupBox); TQ_CHECK_PTR(mGroupBox);
topLayout->addWidget(mGroupBox); topLayout->addWidget(mGroupBox);
TQGridLayout *gl = new TQGridLayout(mGroupBox, 3, 4, KDialog::spacingHint()); TQGridLayout *gl = new TQGridLayout(mGroupBox, 3, 4, KDialog::spacingHint());
@ -91,7 +91,7 @@ MntConfigWidget::MntConfigWidget(TQWidget *parent, const char *name, bool init)
gl->addRowSpacing( 0, fontMetrics().lineSpacing() ); gl->addRowSpacing( 0, fontMetrics().lineSpacing() );
mIconLineEdit = new TQLineEdit(mGroupBox); mIconLineEdit = new TQLineEdit(mGroupBox);
Q_CHECK_PTR(mIconLineEdit); TQ_CHECK_PTR(mIconLineEdit);
mIconLineEdit->setMinimumWidth( fontMetrics().maxWidth()*10 ); mIconLineEdit->setMinimumWidth( fontMetrics().maxWidth()*10 );
connect( mIconLineEdit, TQT_SIGNAL(textChanged(const TQString&)), connect( mIconLineEdit, TQT_SIGNAL(textChanged(const TQString&)),
this,TQT_SLOT(iconChanged(const TQString&))); this,TQT_SLOT(iconChanged(const TQString&)));
@ -101,19 +101,19 @@ MntConfigWidget::MntConfigWidget(TQWidget *parent, const char *name, bool init)
mIconButton = new KIconButton(mGroupBox); mIconButton = new KIconButton(mGroupBox);
mIconButton->setIconType(KIcon::Small, KIcon::Device); mIconButton->setIconType(KIcon::Small, KIcon::Device);
Q_CHECK_PTR(mIconButton); TQ_CHECK_PTR(mIconButton);
mIconButton->setFixedWidth( mIconButton->sizeHint().height() ); mIconButton->setFixedWidth( mIconButton->sizeHint().height() );
connect(mIconButton,TQT_SIGNAL(iconChanged(TQString)),this,TQT_SLOT(iconChangedButton(TQString))); connect(mIconButton,TQT_SIGNAL(iconChanged(TQString)),this,TQT_SLOT(iconChangedButton(TQString)));
gl->addWidget( mIconButton, 2, 1 ); gl->addWidget( mIconButton, 2, 1 );
//Mount //Mount
mMountButton = new TQPushButton( i18n("Get Mount Command"), mGroupBox ); mMountButton = new TQPushButton( i18n("Get Mount Command"), mGroupBox );
Q_CHECK_PTR(mMountButton); TQ_CHECK_PTR(mMountButton);
connect(mMountButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(selectMntFile())); connect(mMountButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(selectMntFile()));
gl->addWidget( mMountButton, 1, 2 ); gl->addWidget( mMountButton, 1, 2 );
mMountLineEdit = new TQLineEdit(mGroupBox); mMountLineEdit = new TQLineEdit(mGroupBox);
Q_CHECK_PTR(mMountLineEdit); TQ_CHECK_PTR(mMountLineEdit);
mMountLineEdit->setMinimumWidth( fontMetrics().maxWidth()*10 ); mMountLineEdit->setMinimumWidth( fontMetrics().maxWidth()*10 );
connect(mMountLineEdit,TQT_SIGNAL(textChanged(const TQString&)), connect(mMountLineEdit,TQT_SIGNAL(textChanged(const TQString&)),
this,TQT_SLOT(mntCmdChanged(const TQString&))); this,TQT_SLOT(mntCmdChanged(const TQString&)));
@ -123,12 +123,12 @@ MntConfigWidget::MntConfigWidget(TQWidget *parent, const char *name, bool init)
//Umount //Umount
mUmountButton = new TQPushButton(i18n("Get Unmount Command"), mGroupBox ); mUmountButton = new TQPushButton(i18n("Get Unmount Command"), mGroupBox );
Q_CHECK_PTR( mUmountButton ); TQ_CHECK_PTR( mUmountButton );
connect(mUmountButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(selectUmntFile())); connect(mUmountButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(selectUmntFile()));
gl->addWidget( mUmountButton, 2, 2 ); gl->addWidget( mUmountButton, 2, 2 );
mUmountLineEdit=new TQLineEdit(mGroupBox); mUmountLineEdit=new TQLineEdit(mGroupBox);
Q_CHECK_PTR(mUmountLineEdit); TQ_CHECK_PTR(mUmountLineEdit);
mUmountLineEdit->setMinimumWidth( fontMetrics().maxWidth()*10 ); mUmountLineEdit->setMinimumWidth( fontMetrics().maxWidth()*10 );
connect(mUmountLineEdit,TQT_SIGNAL(textChanged(const TQString&)), connect(mUmountLineEdit,TQT_SIGNAL(textChanged(const TQString&)),
this,TQT_SLOT(umntCmdChanged(const TQString&))); this,TQT_SLOT(umntCmdChanged(const TQString&)));

Loading…
Cancel
Save