summaryrefslogtreecommitdiffstats
path: root/kdat/BackupProfileInfoWidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kdat/BackupProfileInfoWidget.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdat/BackupProfileInfoWidget.cpp')
-rw-r--r--kdat/BackupProfileInfoWidget.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kdat/BackupProfileInfoWidget.cpp b/kdat/BackupProfileInfoWidget.cpp
index e294c04..7e4a918 100644
--- a/kdat/BackupProfileInfoWidget.cpp
+++ b/kdat/BackupProfileInfoWidget.cpp
@@ -19,9 +19,9 @@
#include <stdlib.h>
#include <time.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
#include <kapplication.h>
#include <kpushbutton.h>
@@ -36,52 +36,52 @@
#include "BackupProfileInfoWidget.moc"
-BackupProfileInfoWidget::BackupProfileInfoWidget( QWidget* parent, const char* name )
- : QWidget( parent, name ),
+BackupProfileInfoWidget::BackupProfileInfoWidget( TQWidget* parent, const char* name )
+ : TQWidget( parent, name ),
_backupProfile( 0 )
{
- QLabel* lbl1 = new QLabel( i18n( "Backup profile name:" ), this );
+ TQLabel* lbl1 = new TQLabel( i18n( "Backup profile name:" ), this );
int max = lbl1->sizeHint().width();
lbl1->setFixedSize( max, lbl1->sizeHint().height() );
- _name = new QLineEdit( this );
+ _name = new TQLineEdit( this );
_name->setFixedHeight( _name->sizeHint().height() );
_profile = new BackupProfileWidget( this );
- QPushButton* getSelection = new QPushButton( i18n( "Files >>" ), this );
+ TQPushButton* getSelection = new TQPushButton( i18n( "Files >>" ), this );
getSelection->setFixedSize( 80, getSelection->sizeHint().height() );
- QPushButton* setSelection = new QPushButton( i18n( "<< Files" ), this );
+ TQPushButton* setSelection = new TQPushButton( i18n( "<< Files" ), this );
setSelection->setFixedSize( 80, setSelection->sizeHint().height() );
_apply = new KPushButton( KStdGuiItem::apply(), this );
_apply->setFixedSize( 80, _apply->sizeHint().height() );
_apply->setEnabled( FALSE );
- QVBoxLayout* l1 = new QVBoxLayout( this, 4, 4 );
+ TQVBoxLayout* l1 = new TQVBoxLayout( this, 4, 4 );
- QHBoxLayout* l1_1 = new QHBoxLayout();
+ TQHBoxLayout* l1_1 = new TQHBoxLayout();
l1->addLayout( l1_1 );
l1_1->addWidget( lbl1 );
l1_1->addWidget( _name, 1 );
l1->addWidget( _profile, 1 );
- QHBoxLayout* l1_2 = new QHBoxLayout();
+ TQHBoxLayout* l1_2 = new TQHBoxLayout();
l1->addLayout( l1_2 );
l1_2->addWidget( setSelection );
l1_2->addWidget( getSelection );
l1_2->addStretch( 1 );
l1_2->addWidget( _apply );
- connect( setSelection, SIGNAL( clicked() ) , this, SLOT( slotSetSelection() ) );
- connect( getSelection, SIGNAL( clicked() ) , this, SLOT( slotGetSelection() ) );
- connect( _name , SIGNAL( textChanged( const QString & ) ), this, SLOT( slotTextChanged( const QString & ) ) );
- connect( _profile , SIGNAL( sigSomethingChanged() ) , this, SLOT( slotSomethingChanged() ) );
- connect( _apply , SIGNAL( clicked() ) , this, SLOT( slotApply() ) );
+ connect( setSelection, TQT_SIGNAL( clicked() ) , this, TQT_SLOT( slotSetSelection() ) );
+ connect( getSelection, TQT_SIGNAL( clicked() ) , this, TQT_SLOT( slotGetSelection() ) );
+ connect( _name , TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SLOT( slotTextChanged( const TQString & ) ) );
+ connect( _profile , TQT_SIGNAL( sigSomethingChanged() ) , this, TQT_SLOT( slotSomethingChanged() ) );
+ connect( _apply , TQT_SIGNAL( clicked() ) , this, TQT_SLOT( slotApply() ) );
}
BackupProfileInfoWidget::~BackupProfileInfoWidget()
@@ -111,8 +111,8 @@ bool BackupProfileInfoWidget::isModified()
return TRUE;
}
- QString one = _backupProfile->getWorkingDirectory();
- QString two = _profile->getWorkingDirectory();
+ TQString one = _backupProfile->getWorkingDirectory();
+ TQString two = _profile->getWorkingDirectory();
// 7/31/01: this breaks
// if ( _profile->getWorkingDirectory() != _backupProfile->getWorkingDirectory() ) {
if( one != two ){
@@ -123,10 +123,10 @@ bool BackupProfileInfoWidget::isModified()
return TRUE;
}
- QStringList list1 = _profile->getAbsoluteFiles();
- QStringList list2 = _backupProfile->getAbsoluteFiles();
- QStringList::Iterator i = list1.begin();
- QStringList::Iterator j = list2.begin();
+ TQStringList list1 = _profile->getAbsoluteFiles();
+ TQStringList list2 = _backupProfile->getAbsoluteFiles();
+ TQStringList::Iterator i = list1.begin();
+ TQStringList::Iterator j = list2.begin();
for ( ; i != list1.end(); ++i ) {
for ( ; j != list2.end(); ++j ) {
if ( *i == *j ) {
@@ -158,7 +158,7 @@ bool BackupProfileInfoWidget::isModified()
return FALSE;
}
-void BackupProfileInfoWidget::slotTextChanged( const QString & )
+void BackupProfileInfoWidget::slotTextChanged( const TQString & )
{
if ( !_backupProfile ) {
return;
@@ -203,7 +203,7 @@ void BackupProfileInfoWidget::slotSetSelection()
void BackupProfileInfoWidget::slotGetSelection()
{
- QStringList files;
+ TQStringList files;
KDatMainWindow::getInstance()->getBackupFiles( files );
_profile->setAbsoluteFiles( files );
}