summaryrefslogtreecommitdiffstats
path: root/kdat/FileInfoWidget.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/FileInfoWidget.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/FileInfoWidget.cpp')
-rw-r--r--kdat/FileInfoWidget.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/kdat/FileInfoWidget.cpp b/kdat/FileInfoWidget.cpp
index 4a2a986..5b75cf7 100644
--- a/kdat/FileInfoWidget.cpp
+++ b/kdat/FileInfoWidget.cpp
@@ -22,10 +22,10 @@
#include <grp.h>
#include <time.h>
-#include <qdatetime.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qfile.h>
+#include <tqdatetime.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqfile.h>
#include <kapplication.h>
#include <kglobal.h>
@@ -36,16 +36,16 @@
#include "FileInfoWidget.moc"
-FileInfoWidget::FileInfoWidget( QWidget* parent, const char* name )
- : QWidget( parent, name )
+FileInfoWidget::FileInfoWidget( TQWidget* parent, const char* name )
+ : TQWidget( parent, name )
{
- QLabel* lbl1 = new QLabel( i18n( "File name:" ), this );
- QLabel* lbl2 = new QLabel( i18n( "Created on:" ), this );
- QLabel* lbl3 = new QLabel( i18n( "Last modified:" ), this );
- QLabel* lbl4 = new QLabel( i18n( "Last accessed:" ), this );
- QLabel* lbl5 = new QLabel( i18n( "Size:" ), this );
- QLabel* lbl6 = new QLabel( i18n( "Owner:" ), this );
- QLabel* lbl7 = new QLabel( i18n( "Group:" ), this );
+ TQLabel* lbl1 = new TQLabel( i18n( "File name:" ), this );
+ TQLabel* lbl2 = new TQLabel( i18n( "Created on:" ), this );
+ TQLabel* lbl3 = new TQLabel( i18n( "Last modified:" ), this );
+ TQLabel* lbl4 = new TQLabel( i18n( "Last accessed:" ), this );
+ TQLabel* lbl5 = new TQLabel( i18n( "Size:" ), this );
+ TQLabel* lbl6 = new TQLabel( i18n( "Owner:" ), this );
+ TQLabel* lbl7 = new TQLabel( i18n( "Group:" ), this );
int max = lbl1->sizeHint().width();
if ( lbl2->sizeHint().width() > max ) max = lbl2->sizeHint().width();
@@ -63,60 +63,60 @@ FileInfoWidget::FileInfoWidget( QWidget* parent, const char* name )
lbl6->setFixedSize( max, lbl6->sizeHint().height() );
lbl7->setFixedSize( max, lbl7->sizeHint().height() );
- _fileName = new QLabel( "???", this );
+ _fileName = new TQLabel( "???", this );
_fileName->setFixedHeight( _fileName->sizeHint().height() );
- _ctime = new QLabel( "???", this );
+ _ctime = new TQLabel( "???", this );
_ctime->setFixedHeight( _ctime->sizeHint().height() );
- _mtime = new QLabel( "???", this );
+ _mtime = new TQLabel( "???", this );
_mtime->setFixedHeight( _mtime->sizeHint().height() );
- _atime = new QLabel( "???", this );
+ _atime = new TQLabel( "???", this );
_atime->setFixedHeight( _atime->sizeHint().height() );
- _size = new QLabel( "???", this );
+ _size = new TQLabel( "???", this );
_size->setFixedHeight( _size->sizeHint().height() );
- _owner = new QLabel( "???", this );
+ _owner = new TQLabel( "???", this );
_owner->setFixedHeight( _owner->sizeHint().height() );
- _group = new QLabel( "???", this );
+ _group = new TQLabel( "???", this );
_group->setFixedHeight( _group->sizeHint().height() );
- 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( _fileName, 1 );
- QHBoxLayout* l1_2 = new QHBoxLayout();
+ TQHBoxLayout* l1_2 = new TQHBoxLayout();
l1->addLayout( l1_2 );
l1_2->addWidget( lbl2 );
l1_2->addWidget( _ctime, 1 );
- QHBoxLayout* l1_3 = new QHBoxLayout();
+ TQHBoxLayout* l1_3 = new TQHBoxLayout();
l1->addLayout( l1_3 );
l1_3->addWidget( lbl3 );
l1_3->addWidget( _mtime, 1 );
- QHBoxLayout* l1_4 = new QHBoxLayout();
+ TQHBoxLayout* l1_4 = new TQHBoxLayout();
l1->addLayout( l1_4 );
l1_4->addWidget( lbl4 );
l1_4->addWidget( _atime, 1 );
- QHBoxLayout* l1_5 = new QHBoxLayout();
+ TQHBoxLayout* l1_5 = new TQHBoxLayout();
l1->addLayout( l1_5 );
l1_5->addWidget( lbl5 );
l1_5->addWidget( _size, 1 );
- QHBoxLayout* l1_6 = new QHBoxLayout();
+ TQHBoxLayout* l1_6 = new TQHBoxLayout();
l1->addLayout( l1_6 );
l1_6->addWidget( lbl6 );
l1_6->addWidget( _owner, 1 );
- QHBoxLayout* l1_7 = new QHBoxLayout();
+ TQHBoxLayout* l1_7 = new TQHBoxLayout();
l1->addLayout( l1_7 );
l1_7->addWidget( lbl7 );
l1_7->addWidget( _group, 1 );
@@ -128,7 +128,7 @@ FileInfoWidget::~FileInfoWidget()
{
}
-void FileInfoWidget::setFile( const QString & name )
+void FileInfoWidget::setFile( const TQString & name )
{
if ( name.isNull() ) {
return;
@@ -137,10 +137,10 @@ void FileInfoWidget::setFile( const QString & name )
_fileName->setText( name );
struct stat info;
- lstat( QFile::encodeName(name), &info );
+ lstat( TQFile::encodeName(name), &info );
- QString tmp;
- QDateTime datetime;
+ TQString tmp;
+ TQDateTime datetime;
datetime.setTime_t(info.st_ctime);
_ctime->setText( KGlobal::locale()->formatDateTime(datetime, false) );