summaryrefslogtreecommitdiffstats
path: root/kdat/ArchiveInfoWidget.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/ArchiveInfoWidget.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/ArchiveInfoWidget.cpp')
-rw-r--r--kdat/ArchiveInfoWidget.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kdat/ArchiveInfoWidget.cpp b/kdat/ArchiveInfoWidget.cpp
index 225d229..c3838d4 100644
--- a/kdat/ArchiveInfoWidget.cpp
+++ b/kdat/ArchiveInfoWidget.cpp
@@ -18,9 +18,9 @@
#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>
@@ -35,13 +35,13 @@
#include "ArchiveInfoWidget.moc"
-ArchiveInfoWidget::ArchiveInfoWidget( QWidget* parent, const char* name )
- : QWidget( parent, name ),
+ArchiveInfoWidget::ArchiveInfoWidget( TQWidget* parent, const char* name )
+ : TQWidget( parent, name ),
_archive( 0 )
{
- QLabel* lbl1 = new QLabel( i18n( "Archive name:" ), this );
- QLabel* lbl2 = new QLabel( i18n( "Created on:" ), this );
- QLabel* lbl3 = new QLabel( i18n( "Size:" ), this );
+ TQLabel* lbl1 = new TQLabel( i18n( "Archive name:" ), this );
+ TQLabel* lbl2 = new TQLabel( i18n( "Created on:" ), this );
+ TQLabel* lbl3 = new TQLabel( i18n( "Size:" ), this );
int max = lbl1->sizeHint().width();
if ( lbl2->sizeHint().width() > max ) max = lbl2->sizeHint().width();
@@ -51,45 +51,45 @@ ArchiveInfoWidget::ArchiveInfoWidget( QWidget* parent, const char* name )
lbl2->setFixedSize( max, lbl2->sizeHint().height() );
lbl3->setFixedSize( max, lbl3->sizeHint().height() );
- _archiveName = new QLineEdit( this );
+ _archiveName = new TQLineEdit( this );
_archiveName->setFixedHeight( _archiveName->sizeHint().height() );
- _ctime = new QLabel( "???", this );
+ _ctime = new TQLabel( "???", this );
_ctime->setFixedHeight( _ctime->sizeHint().height() );
- _size = new QLabel( "???", this );
+ _size = new TQLabel( "???", this );
_size->setFixedHeight( _size->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( _archiveName, 1 );
- QHBoxLayout* l1_2 = new QHBoxLayout();
+ TQHBoxLayout* l1_2 = new TQHBoxLayout();
l1->addLayout( l1_2 );
l1_2->addWidget( lbl2 );
l1_2->addWidget( _ctime );
- QHBoxLayout* l1_3 = new QHBoxLayout();
+ TQHBoxLayout* l1_3 = new TQHBoxLayout();
l1->addLayout( l1_3 );
l1_3->addWidget( lbl3 );
l1_3->addWidget( _size );
l1->addStretch( 1 );
- QHBoxLayout* l1_4 = new QHBoxLayout();
+ TQHBoxLayout* l1_4 = new TQHBoxLayout();
l1->addLayout( l1_4 );
l1_4->addStretch( 1 );
l1_4->addWidget( _apply );
- connect( _archiveName, SIGNAL( textChanged( const QString& ) ), this, SLOT( slotTextChanged( const QString& ) ) );
- connect( _apply , SIGNAL( clicked() ) , this, SLOT( slotApply() ) );
+ connect( _archiveName, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( slotTextChanged( const TQString& ) ) );
+ connect( _apply , TQT_SIGNAL( clicked() ) , this, TQT_SLOT( slotApply() ) );
}
ArchiveInfoWidget::~ArchiveInfoWidget()
@@ -106,7 +106,7 @@ void ArchiveInfoWidget::setArchive( Archive* archive )
_archiveName->setText( _archive->getName() );
- QString tmp;
+ TQString tmp;
time_t tm = _archive->getCTime();
tmp = ctime( &tm );
tmp = tmp.stripWhiteSpace();
@@ -122,7 +122,7 @@ void ArchiveInfoWidget::setArchive( Archive* archive )
_size->setText( Util::kbytesToString( used ) );
}
-void ArchiveInfoWidget::slotTextChanged( const QString& text )
+void ArchiveInfoWidget::slotTextChanged( const TQString& text )
{
if ( !_archive ) {
return;