summaryrefslogtreecommitdiffstats
path: root/src/common/gui/purl_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/gui/purl_gui.cpp')
-rw-r--r--src/common/gui/purl_gui.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/common/gui/purl_gui.cpp b/src/common/gui/purl_gui.cpp
index d81fdb6..f93e11c 100644
--- a/src/common/gui/purl_gui.cpp
+++ b/src/common/gui/purl_gui.cpp
@@ -8,7 +8,7 @@
***************************************************************************/
#include "purl_gui.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kiconloader.h>
#include <kpushbutton.h>
#include <krun.h>
@@ -18,20 +18,20 @@
#include "misc_gui.h"
//-----------------------------------------------------------------------------
-PURL::Url PURL::getOpenUrl(const QString &startDir, const QString &filter,
- QWidget *widget, const QString &caption)
+PURL::Url PURL::getOpenUrl(const TQString &startDir, const TQString &filter,
+ TQWidget *widget, const TQString &caption)
{
return KFileDialog::getOpenURL(startDir, filter, widget, caption);
}
-PURL::UrlList PURL::getOpenUrls(const QString &startDir, const QString &filter,
- QWidget *widget, const QString &caption)
+PURL::UrlList PURL::getOpenUrls(const TQString &startDir, const TQString &filter,
+ TQWidget *widget, const TQString &caption)
{
return KFileDialog::getOpenURLs(startDir, filter, widget, caption);
}
-PURL::Url PURL::getSaveUrl(const QString &startDir, const QString &filter,
- QWidget *widget, const QString &caption,
+PURL::Url PURL::getSaveUrl(const TQString &startDir, const TQString &filter,
+ TQWidget *widget, const TQString &caption,
SaveAction action)
{
Url url = KFileDialog::getSaveURL(startDir, filter, widget, caption);
@@ -40,7 +40,7 @@ PURL::Url PURL::getSaveUrl(const QString &startDir, const QString &filter,
case NoSaveAction: break;
case AskOverwrite:
if ( url.exists() ) {
- if ( !MessageBox::askContinue(i18n("File \"%1\" already exists. Overwrite ?").arg(url.pretty())) ) return Url();
+ if ( !MessageBox::askContinue(i18n("File \"%1\" already exists. Overwrite ?").tqarg(url.pretty())) ) return Url();
}
break;
case CancelIfExists:
@@ -50,19 +50,19 @@ PURL::Url PURL::getSaveUrl(const QString &startDir, const QString &filter,
return url;
}
-PURL::Directory PURL::getExistingDirectory(const QString &startDir, QWidget *widget,
- const QString &caption)
+PURL::Directory PURL::getExistingDirectory(const TQString &startDir, TQWidget *widget,
+ const TQString &caption)
{
KURL kurl = KDirSelectDialog::selectDirectory(startDir, false, widget, caption);
if ( kurl.isEmpty() ) return Directory();
return Directory(kurl.path(1));
}
-QPixmap PURL::icon(FileType type)
+TQPixmap PURL::icon(FileType type)
{
- if (type.data().xpm_icon) return QPixmap(type.data().xpm_icon);
+ if (type.data().xpm_icon) return TQPixmap(type.data().xpm_icon);
if ( hasMimetype(type) ) return KMimeType::mimeType(type.data().mimetype)->pixmap(KIcon::Small);
- return QPixmap();
+ return TQPixmap();
}
bool PURL::hasMimetype(FileType type)
@@ -73,11 +73,11 @@ bool PURL::hasMimetype(FileType type)
}
//-----------------------------------------------------------------------------
-PURL::Label::Label(const QString &url, const QString &text,
- QWidget *parent, const char *name)
- : KURLLabel(url, text, parent, name)
+PURL::Label::Label(const TQString &url, const TQString &text,
+ TQWidget *tqparent, const char *name)
+ : KURLLabel(url, text, tqparent, name)
{
- connect(this, SIGNAL(leftClickedURL()), SLOT(urlClickedSlot()));
+ connect(this, TQT_SIGNAL(leftClickedURL()), TQT_SLOT(urlClickedSlot()));
}
void PURL::Label::urlClickedSlot()
@@ -86,29 +86,29 @@ void PURL::Label::urlClickedSlot()
}
//-----------------------------------------------------------------------------
-PURL::BaseWidget::BaseWidget(QWidget *parent, const char *name)
- : QWidget(parent, name)
+PURL::BaseWidget::BaseWidget(TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent, name)
{
init();
}
-PURL::BaseWidget::BaseWidget(const QString &defaultDir, QWidget *parent, const char *name)
- : QWidget(parent, name), _defaultDir(defaultDir)
+PURL::BaseWidget::BaseWidget(const TQString &defaultDir, TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent, name), _defaultDir(defaultDir)
{
init();
}
void PURL::BaseWidget::init()
{
- QHBoxLayout *top = new QHBoxLayout(this, 0, 10);
+ TQHBoxLayout *top = new TQHBoxLayout(this, 0, 10);
_edit = new KLineEdit(this);
- connect(_edit, SIGNAL(textChanged(const QString &)), SIGNAL(changed()));
+ connect(_edit, TQT_SIGNAL(textChanged(const TQString &)), TQT_SIGNAL(changed()));
top->addWidget(_edit);
KIconLoader loader;
- QIconSet iconset = loader.loadIcon("fileopen", KIcon::Toolbar);
- QPushButton *button = new KPushButton(iconset, QString::null, this);
- connect(button, SIGNAL(clicked()), SLOT(buttonClicked()));
+ TQIconSet iconset = loader.loadIcon("fileopen", KIcon::Toolbar);
+ TQPushButton *button = new KPushButton(iconset, TQString(), this);
+ connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(buttonClicked()));
top->addWidget(button);
}
@@ -122,23 +122,23 @@ void PURL::DirectoryWidget::buttonClicked()
}
//----------------------------------------------------------------------------
-PURL::DirectoriesWidget::DirectoriesWidget(const QString &title, QWidget *parent, const char *name)
- : QVGroupBox(title, parent, name)
+PURL::DirectoriesWidget::DirectoriesWidget(const TQString &title, TQWidget *tqparent, const char *name)
+ : TQVGroupBox(title, tqparent, name)
{
- init(QString::null);
+ init(TQString());
}
-PURL::DirectoriesWidget::DirectoriesWidget(const QString &title, const QString &defaultDir, QWidget *parent, const char *name)
- : QVGroupBox(title, parent, name)
+PURL::DirectoriesWidget::DirectoriesWidget(const TQString &title, const TQString &defaultDir, TQWidget *tqparent, const char *name)
+ : TQVGroupBox(title, tqparent, name)
{
init(defaultDir);
}
-void PURL::DirectoriesWidget::init(const QString &defaultDir)
+void PURL::DirectoriesWidget::init(const TQString &defaultDir)
{
DirectoryWidget *edit = new DirectoryWidget(defaultDir);
_editListBox = new EditListBox(1, edit, edit->lineEdit(), this, "directories_editlistbox");
- connect(_editListBox, SIGNAL(changed()), SIGNAL(changed()));
+ connect(_editListBox, TQT_SIGNAL(changed()), TQT_SIGNAL(changed()));
}
//----------------------------------------------------------------------------