summaryrefslogtreecommitdiffstats
path: root/src/editbookmarkdialog.cpp
diff options
context:
space:
mode:
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());