summaryrefslogtreecommitdiffstats
path: root/src/generalsettingspage.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-27 00:40:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-27 00:40:29 +0000
commit7a741e43ff09e70396a918956219b8316c48e522 (patch)
tree3d0f60eccd59786cea7236db2d5c4c1f25874515 /src/generalsettingspage.cpp
parenta48487ef0c329434b58b6f920111bb0999f1109e (diff)
downloaddolphin-7a741e43ff09e70396a918956219b8316c48e522.tar.gz
dolphin-7a741e43ff09e70396a918956219b8316c48e522.zip
TQt4 port Dolphin
This enables compilation under Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1229359 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/generalsettingspage.cpp')
-rw-r--r--src/generalsettingspage.cpp92
1 files changed, 46 insertions, 46 deletions
diff --git a/src/generalsettingspage.cpp b/src/generalsettingspage.cpp
index 0a97574..0e4e6f1 100644
--- a/src/generalsettingspage.cpp
+++ b/src/generalsettingspage.cpp
@@ -20,78 +20,78 @@
#include "generalsettingspage.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kdialog.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qvbox.h>
-#include <qgrid.h>
-#include <qgroupbox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqvbox.h>
+#include <tqgrid.h>
+#include <tqgroupbox.h>
#include <klocale.h>
-#include <qcheckbox.h>
-#include <qbuttongroup.h>
-#include <qpushbutton.h>
+#include <tqcheckbox.h>
+#include <tqbuttongroup.h>
+#include <tqpushbutton.h>
#include <kfiledialog.h>
-#include <qradiobutton.h>
+#include <tqradiobutton.h>
#include "dolphinsettings.h"
#include "dolphin.h"
#include "dolphinview.h"
-GeneralSettingsPage::GeneralSettingsPage(QWidget* parent) :
- SettingsPageBase(parent),
+GeneralSettingsPage::GeneralSettingsPage(TQWidget* tqparent) :
+ SettingsPageBase(tqparent),
m_homeURL(0),
m_startSplit(0),
m_startEditable(0)
{
- QVBoxLayout* topLayout = new QVBoxLayout(parent, 2, KDialog::spacingHint());
+ TQVBoxLayout* topLayout = new TQVBoxLayout(tqparent, 2, KDialog::spacingHint());
const int spacing = KDialog::spacingHint();
const int margin = KDialog::marginHint();
- const QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
+ const TQSizePolicy sizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed);
DolphinSettings& settings = DolphinSettings::instance();
- QVBox* vBox = new QVBox(parent);
- vBox->setSizePolicy(sizePolicy);
+ TQVBox* vBox = new TQVBox(tqparent);
+ vBox->tqsetSizePolicy(sizePolicy);
vBox->setSpacing(spacing);
vBox->setMargin(margin);
- vBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Ignored);
+ vBox->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Ignored);
// create 'Home URL' editor
- QGroupBox* homeGroup = new QGroupBox(1, Qt::Horizontal, i18n("Home URL"), vBox);
- homeGroup->setSizePolicy(sizePolicy);
+ TQGroupBox* homeGroup = new TQGroupBox(1, Qt::Horizontal, i18n("Home URL"), vBox);
+ homeGroup->tqsetSizePolicy(sizePolicy);
homeGroup->setMargin(margin);
- QHBox* homeURLBox = new QHBox(homeGroup);
- homeURLBox->setSizePolicy(sizePolicy);
+ TQHBox* homeURLBox = new TQHBox(homeGroup);
+ homeURLBox->tqsetSizePolicy(sizePolicy);
homeURLBox->setSpacing(spacing);
- new QLabel(i18n("Location:"), homeURLBox);
- m_homeURL = new QLineEdit(settings.homeURL().prettyURL(), homeURLBox);
+ new TQLabel(i18n("Location:"), homeURLBox);
+ m_homeURL = new TQLineEdit(settings.homeURL().prettyURL(), homeURLBox);
- QPushButton* selectHomeURLButton = new QPushButton(SmallIcon("folder"), QString::null, homeURLBox);
- connect(selectHomeURLButton, SIGNAL(clicked()),
- this, SLOT(selectHomeURL()));
+ TQPushButton* selectHomeURLButton = new TQPushButton(SmallIcon("folder"), TQString(), homeURLBox);
+ connect(selectHomeURLButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(selectHomeURL()));
- QHBox* buttonBox = new QHBox(homeGroup);
- buttonBox->setSizePolicy(sizePolicy);
+ TQHBox* buttonBox = new TQHBox(homeGroup);
+ buttonBox->tqsetSizePolicy(sizePolicy);
buttonBox->setSpacing(spacing);
- QPushButton* useCurrentButton = new QPushButton(i18n("Use current location"), buttonBox);
- connect(useCurrentButton, SIGNAL(clicked()),
- this, SLOT(useCurrentLocation()));
- QPushButton* useDefaultButton = new QPushButton(i18n("Use default location"), buttonBox);
- connect(useDefaultButton, SIGNAL(clicked()),
- this, SLOT(useDefaulLocation()));
+ TQPushButton* useCurrentButton = new TQPushButton(i18n("Use current location"), buttonBox);
+ connect(useCurrentButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(useCurrentLocation()));
+ TQPushButton* useDefaultButton = new TQPushButton(i18n("Use default location"), buttonBox);
+ connect(useDefaultButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(useDefaulLocation()));
// create 'Default View Mode' group
- QButtonGroup* buttonGroup = new QButtonGroup(3, Qt::Vertical, i18n("Default View Mode"), vBox);
- buttonGroup->setSizePolicy(sizePolicy);
+ TQButtonGroup* buttonGroup = new TQButtonGroup(3, Qt::Vertical, i18n("Default View Mode"), vBox);
+ buttonGroup->tqsetSizePolicy(sizePolicy);
buttonGroup->setMargin(margin);
- m_iconsView = new QRadioButton(i18n("Icons"), buttonGroup);
- m_detailsView = new QRadioButton(i18n("Details"), buttonGroup);
- m_previewsView = new QRadioButton(i18n("Previews"), buttonGroup);
+ m_iconsView = new TQRadioButton(i18n("Icons"), buttonGroup);
+ m_detailsView = new TQRadioButton(i18n("Details"), buttonGroup);
+ m_previewsView = new TQRadioButton(i18n("Previews"), buttonGroup);
switch (settings.defaultViewMode()) {
case DolphinView::IconsView: m_iconsView->setChecked(true); break;
@@ -100,21 +100,21 @@ GeneralSettingsPage::GeneralSettingsPage(QWidget* parent) :
}
// create 'Start with split view' checkbox
- m_startSplit = new QCheckBox(i18n("Start with split view"), vBox);
+ m_startSplit = new TQCheckBox(i18n("Start with split view"), vBox);
m_startSplit->setChecked(settings.isViewSplit());
// create 'Start with editable navigation bar' checkbox
- m_startEditable = new QCheckBox(i18n("Start with editable navigation bar"), vBox);
+ m_startEditable = new TQCheckBox(i18n("Start with editable navigation bar"), vBox);
m_startEditable->setChecked(settings.isURLEditable());
// create 'Save view properties for each folder' checkbox
- m_saveView = new QCheckBox(i18n("Save view properties for each folder"), vBox);
+ m_saveView = new TQCheckBox(i18n("Save view properties for each folder"), vBox);
m_saveView->setChecked(settings.isSaveView());
// Add a dummy widget with no restriction regarding
- // a vertical resizing. This assures that the dialog layout
+ // a vertical resizing. This assures that the dialog tqlayout
// is not stretched vertically.
- new QWidget(vBox);
+ new TQWidget(vBox);
topLayout->addWidget(vBox);
}
@@ -150,7 +150,7 @@ void GeneralSettingsPage::applySettings()
void GeneralSettingsPage::selectHomeURL()
{
- const QString homeURL(m_homeURL->text());
+ const TQString homeURL(m_homeURL->text());
KURL url(KFileDialog::getExistingURL(homeURL));
if (!url.isEmpty()) {
m_homeURL->setText(url.prettyURL());
@@ -165,7 +165,7 @@ void GeneralSettingsPage::useCurrentLocation()
void GeneralSettingsPage::useDefaulLocation()
{
- m_homeURL->setText("file://" + QDir::homeDirPath());
+ m_homeURL->setText("file://" + TQDir::homeDirPath());
}
#include "generalsettingspage.moc"