summaryrefslogtreecommitdiffstats
path: root/src/editbookmarkdialog.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/editbookmarkdialog.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/editbookmarkdialog.cpp')
-rw-r--r--src/editbookmarkdialog.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/src/editbookmarkdialog.cpp b/src/editbookmarkdialog.cpp
index 3d25ce3..3a3f5ca 100644
--- a/src/editbookmarkdialog.cpp
+++ b/src/editbookmarkdialog.cpp
@@ -19,26 +19,26 @@
***************************************************************************/
#include "editbookmarkdialog.h"
-#include <qgrid.h>
+#include <tqgrid.h>
#include <klocale.h>
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <kiconloader.h>
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <kurl.h>
#include <kfiledialog.h>
#include <kicondialog.h>
-#include <qhbox.h>
+#include <tqhbox.h>
EditBookmarkDialog::~EditBookmarkDialog()
{
}
-KBookmark EditBookmarkDialog::getBookmark(const QString& title,
- const QString& name,
+KBookmark EditBookmarkDialog::getBookmark(const TQString& title,
+ const TQString& name,
const KURL& url,
- const QString& icon)
+ const TQString& icon)
{
EditBookmarkDialog dialog(title, name, url, icon);
dialog.exec();
@@ -54,54 +54,54 @@ void EditBookmarkDialog::slotOk()
KDialogBase::slotOk();
}
-EditBookmarkDialog::EditBookmarkDialog(const QString& title,
- const QString& name,
+EditBookmarkDialog::EditBookmarkDialog(const TQString& title,
+ const TQString& name,
const KURL& url,
- const QString& icon) :
+ const TQString& icon) :
KDialogBase(Plain, title, Ok|Cancel, Ok),
m_iconButton(0),
m_name(0),
m_location(0)
{
- QVBoxLayout* topLayout = new QVBoxLayout(plainPage(), 0, spacingHint());
+ TQVBoxLayout* topLayout = new TQVBoxLayout(plainPage(), 0, spacingHint());
- QGrid* grid = new QGrid(2, Qt::Horizontal, plainPage());
+ TQGrid* grid = new TQGrid(2, Qt::Horizontal, plainPage());
grid->setSpacing(spacingHint());
// create icon widgets
- new QLabel(i18n("Icon:"), grid);
+ new TQLabel(i18n("Icon:"), grid);
m_iconName = icon;
- m_iconButton = new QPushButton(SmallIcon(m_iconName), QString::null, grid);
- m_iconButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
- connect(m_iconButton, SIGNAL(clicked()),
- this, SLOT(selectIcon()));
+ m_iconButton = new TQPushButton(SmallIcon(m_iconName), TQString(), grid);
+ m_iconButton->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
+ connect(m_iconButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(selectIcon()));
// create name widgets
- new QLabel(i18n("Name:"), grid);
- m_name = new QLineEdit(name, grid);
+ new TQLabel(i18n("Name:"), grid);
+ m_name = new TQLineEdit(name, grid);
m_name->selectAll();
m_name->setFocus();
// create location widgets
- new QLabel(i18n("Location:"), grid);
+ new TQLabel(i18n("Location:"), grid);
- QHBox* locationBox = new QHBox(grid);
- locationBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
+ TQHBox* locationBox = new TQHBox(grid);
+ locationBox->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed);
locationBox->setSpacing(spacingHint());
- m_location = new QLineEdit(url.prettyURL(), locationBox);
+ m_location = new TQLineEdit(url.prettyURL(), locationBox);
m_location->setMinimumWidth(320);
- QPushButton* selectLocationButton = new QPushButton(SmallIcon("folder"), QString::null, locationBox);
- selectLocationButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
- connect(selectLocationButton, SIGNAL(clicked()),
- this, SLOT(selectLocation()));
+ TQPushButton* selectLocationButton = new TQPushButton(SmallIcon("folder"), TQString(), locationBox);
+ selectLocationButton->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
+ connect(selectLocationButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(selectLocation()));
topLayout->addWidget(grid);
}
void EditBookmarkDialog::selectIcon()
{
- const QString iconName(KIconDialog::getIcon(KIcon::Small, KIcon::FileSystem));
+ const TQString iconName(KIconDialog::getIcon(KIcon::Small, KIcon::FileSystem));
if (!iconName.isEmpty()) {
m_iconName = iconName;
m_iconButton->setIconSet(SmallIcon(iconName));
@@ -110,7 +110,7 @@ void EditBookmarkDialog::selectIcon()
void EditBookmarkDialog::selectLocation()
{
- const QString location(m_location->text());
+ const TQString location(m_location->text());
KURL url(KFileDialog::getExistingURL(location));
if (!url.isEmpty()) {
m_location->setText(url.prettyURL());