summaryrefslogtreecommitdiffstats
path: root/kget/dlgIndividual.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kget/dlgIndividual.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kget/dlgIndividual.cpp')
-rw-r--r--kget/dlgIndividual.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/kget/dlgIndividual.cpp b/kget/dlgIndividual.cpp
index 72fc6c7d..9cb9690c 100644
--- a/kget/dlgIndividual.cpp
+++ b/kget/dlgIndividual.cpp
@@ -25,15 +25,15 @@
***************************************************************************/
-#include <qlayout.h>
+#include <tqlayout.h>
#include "dockindividual.h"
-#include <qlabel.h>
-#include <qtabwidget.h>
+#include <tqlabel.h>
+#include <tqtabwidget.h>
#include <kprogress.h>
-#include <qtextedit.h>
-#include <qcheckbox.h>
+#include <tqtextedit.h>
+#include <tqcheckbox.h>
#include <kpushbutton.h>
#include <ksqueezedtextlabel.h>
#include <kdatetimewidget.h>
@@ -53,7 +53,7 @@
DlgIndividual::DlgIndividual(Transfer * _item)
- : QWidget(0, "dialog", WDestructiveClose)
+ : TQWidget(0, "dialog", WDestructiveClose)
{
item = _item;
@@ -63,22 +63,22 @@ DlgIndividual::DlgIndividual(Transfer * _item)
// Actions
- m_paDock = new KToggleAction(i18n("&Dock"),"tool_dock.png", 0, this, SLOT(slotToggleDock()), this, "dockIndividual");
+ m_paDock = new KToggleAction(i18n("&Dock"),"tool_dock.png", 0, this, TQT_SLOT(slotToggleDock()), this, "dockIndividual");
- QVBoxLayout *topLayout = new QVBoxLayout( this, KDialog::marginHint(),KDialog::spacingHint() );
+ TQVBoxLayout *topLayout = new TQVBoxLayout( this, KDialog::marginHint(),KDialog::spacingHint() );
topLayout->addStrut( 360 ); // makes dlg at least that wide
- QGridLayout *grid = new QGridLayout( 2, 3 );
+ TQGridLayout *grid = new TQGridLayout( 2, 3 );
topLayout->addLayout(grid);
grid->addColSpacing(1, KDialog::spacingHint());
- grid->addWidget(new QLabel(i18n("Source:"), this), 0, 0);
+ grid->addWidget(new TQLabel(i18n("Source:"), this), 0, 0);
sourceLabel = new KSqueezedTextLabel(this);
grid->addWidget(sourceLabel, 0, 2);
sourceLabel->setText(i18n("Source Label"));
- grid->addWidget(new QLabel(i18n("Destination:"), this), 1, 0);
+ grid->addWidget(new TQLabel(i18n("Destination:"), this), 1, 0);
destLabel = new KSqueezedTextLabel(this);
grid->addWidget(destLabel, 1, 2);
@@ -88,15 +88,15 @@ DlgIndividual::DlgIndividual(Transfer * _item)
topLayout->addWidget( m_pProgressBar );
// processed info
- QHBoxLayout *hBox = new QHBoxLayout();
+ TQHBoxLayout *hBox = new TQHBoxLayout();
topLayout->addLayout(hBox);
- sizeLabel = new QLabel(this);
+ sizeLabel = new TQLabel(this);
hBox->addWidget(sizeLabel);
- resumeLabel = new QLabel(this);
+ resumeLabel = new TQLabel(this);
hBox->addWidget(resumeLabel);
- speedLabel = new QLabel(this);
+ speedLabel = new TQLabel(this);
speedLabel->setText(i18n("0 B/s"));
topLayout->addWidget(speedLabel);
@@ -125,46 +125,46 @@ DlgIndividual::DlgIndividual(Transfer * _item)
- QCheckBox * keepOpen = new QCheckBox( i18n("&Keep this window open after the operation is complete."), this);
- connect( keepOpen, SIGNAL( toggled(bool) ), SLOT( slotKeepOpenToggled(bool) ) );
+ TQCheckBox * keepOpen = new TQCheckBox( i18n("&Keep this window open after the operation is complete."), this);
+ connect( keepOpen, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( slotKeepOpenToggled(bool) ) );
topLayout->addWidget(keepOpen);
- QFrame *line3 = new QFrame( this );
- line3->setFrameShape( QFrame::HLine );
- line3->setFrameShadow( QFrame::Sunken );
+ TQFrame *line3 = new TQFrame( this );
+ line3->setFrameShape( TQFrame::HLine );
+ line3->setFrameShadow( TQFrame::Sunken );
topLayout->addWidget( line3 );
- hBox = new QHBoxLayout();
+ hBox = new TQHBoxLayout();
topLayout->addLayout(hBox);
openFile = new KPushButton( i18n("Open &File"), this );
- connect( openFile, SIGNAL( clicked() ), SLOT( slotOpenFile() ) );
+ connect( openFile, TQT_SIGNAL( clicked() ), TQT_SLOT( slotOpenFile() ) );
hBox->addWidget( openFile );
openFile->setEnabled(false);
openLocation = new KPushButton( i18n("Open &Destination"), this );
- connect( openLocation, SIGNAL( clicked() ), SLOT( slotOpenLocation() ) );
+ connect( openLocation, TQT_SIGNAL( clicked() ), TQT_SLOT( slotOpenLocation() ) );
hBox->addWidget( openLocation );
hBox->addStretch(1);
pbAdvanced = new KPushButton( i18n("Advanced"), this );
- connect(pbAdvanced, SIGNAL(clicked()), SLOT(slotToggleAdvanced()));
+ connect(pbAdvanced, TQT_SIGNAL(clicked()), TQT_SLOT(slotToggleAdvanced()));
hBox->addWidget( pbAdvanced );
// setup tab dialog
- panelAdvanced = new QTabWidget(this);
+ panelAdvanced = new TQTabWidget(this);
// if the time was already set somewhere in the future, keep it
// otherwise set it to the current time
- QDateTime dt;
+ TQDateTime dt;
- if (item->getStartTime() < QDateTime::currentDateTime() && item->getMode() != Transfer::MD_SCHEDULED)
+ if (item->getStartTime() < TQDateTime::currentDateTime() && item->getMode() != Transfer::MD_SCHEDULED)
{
- dt = QDateTime::currentDateTime();
+ dt = TQDateTime::currentDateTime();
}
else
{
@@ -176,15 +176,15 @@ DlgIndividual::DlgIndividual(Transfer * _item)
panelAdvanced->addTab(spins, i18n("Timer"));
panelAdvanced->hide();
- connect(spins, SIGNAL(valueChanged(const QDateTime &)), item, SLOT(slotStartTime(const QDateTime &)));
+ connect(spins, TQT_SIGNAL(valueChanged(const TQDateTime &)), item, TQT_SLOT(slotStartTime(const TQDateTime &)));
// adding item log
- ml_log = new QTextEdit(panelAdvanced);
+ ml_log = new TQTextEdit(panelAdvanced);
ml_log->setTextFormat(LogText);
ml_log->setReadOnly(true);
// ml_log->setFixedSize(sizeHint());
- ml_log->setVScrollBarMode(QScrollView::Auto);
- ml_log->setWordWrap(QTextEdit::NoWrap);
+ ml_log->setVScrollBarMode(TQScrollView::Auto);
+ ml_log->setWordWrap(TQTextEdit::NoWrap);
// ml_log->setSizePolicy(policy);
@@ -228,7 +228,7 @@ void DlgIndividual::setProcessedSize(KIO::filesize_t bytes)
}
-void DlgIndividual::setSpeed(QString speed)
+void DlgIndividual::setSpeed(TQString speed)
{
speedLabel->setText(speed);
m_pDockIndividual->setTip(speed);
@@ -295,12 +295,12 @@ void DlgIndividual::slotToggleDock()
/** Sets the whole log */
-void DlgIndividual::setLog(const QString & _msg)
+void DlgIndividual::setLog(const TQString & _msg)
{
ml_log->setText(_msg);
}
-void DlgIndividual::appendLog(const QString & _msg)
+void DlgIndividual::appendLog(const TQString & _msg)
{
ml_log->append(_msg);
}