summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/oblique/view.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun-plugins/oblique/view.cpp')
-rw-r--r--noatun-plugins/oblique/view.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/noatun-plugins/oblique/view.cpp b/noatun-plugins/oblique/view.cpp
index 93b79ce..8c7f81d 100644
--- a/noatun-plugins/oblique/view.cpp
+++ b/noatun-plugins/oblique/view.cpp
@@ -11,21 +11,21 @@
#include <klocale.h>
#include <kedittoolbar.h>
#include <kfiledialog.h>
-#include <qlabel.h>
+#include <tqlabel.h>
#include <klineeditdlg.h>
#include <kmessagebox.h>
#include <ktabwidget.h>
-#include <qtabbar.h>
+#include <tqtabbar.h>
class TabWidget : public KTabWidget
{
public:
- TabWidget(QWidget *parent)
+ TabWidget(TQWidget *parent)
: KTabWidget(parent)
{
}
public:
- QTabBar *tabBar() const { return KTabWidget::tabBar(); }
+ TQTabBar *tabBar() const { return KTabWidget::tabBar(); }
};
@@ -37,45 +37,45 @@ View::View(Oblique *oblique)
mTabs = new TabWidget(this);
mTabs->tabBar()->hide();
- connect(mTabs, SIGNAL(currentChanged(QWidget*)), SLOT(currentTabChanged(QWidget*)));
+ connect(mTabs, TQT_SIGNAL(currentChanged(TQWidget*)), TQT_SLOT(currentTabChanged(TQWidget*)));
setCentralWidget(mTabs);
KAction *ac;
- ac = new KAction(i18n("Add &Files..."), "queue", 0, this, SLOT(addFiles()), actionCollection(), "add_files");
+ ac = new KAction(i18n("Add &Files..."), "queue", 0, this, TQT_SLOT(addFiles()), actionCollection(), "add_files");
ac->setWhatsThis(i18n("Add a reference to a media file on disk to this collection."));
- ac = new KAction(i18n("Add Fol&ders..."), "folder", 0, this, SLOT(addDirectory()), actionCollection(), "add_dir");
+ ac = new KAction(i18n("Add Fol&ders..."), "folder", 0, this, TQT_SLOT(addDirectory()), actionCollection(), "add_dir");
-// ac = new KAction(i18n("&Reload"), "reload", 0, oblique, SLOT(reload()), actionCollection(), "reload");
+// ac = new KAction(i18n("&Reload"), "reload", 0, oblique, TQT_SLOT(reload()), actionCollection(), "reload");
// ac->setWhatsThis(i18n("Reread the collection and meta-information from its files."));
ac = new SliceListAction(
i18n("&Slices"), oblique,
- this, SLOT(use(Slice*)), QValueList<File>(), actionCollection(), "slices"
+ this, TQT_SLOT(use(Slice*)), TQValueList<File>(), actionCollection(), "slices"
);
ac->setWhatsThis(i18n("Select a sub-collection to display"));
mSchemaListAction = new SchemaListAction(
- i18n("&Schemas"), this, SLOT(setSchema(const QString&)), actionCollection(), "schemas"
+ i18n("&Schemas"), this, TQT_SLOT(setSchema(const TQString&)), actionCollection(), "schemas"
);
mSchemaListAction->setWhatsThis(i18n("Select a schema to use to collate the tree."));
ac = new KAction(
- i18n("&New Tab"), "tab_new", "CTRL+SHIFT+N;CTRL+T", this, SLOT(addTab()),
+ i18n("&New Tab"), "tab_new", "CTRL+SHIFT+N;CTRL+T", this, TQT_SLOT(addTab()),
actionCollection(), "newtab"
);
mRemoveTabAction = new KAction(
- i18n("&Close Current Tab"), "tab_remove", CTRL+Key_W, this, SLOT(removeTab()),
+ i18n("&Close Current Tab"), "tab_remove", CTRL+Key_W, this, TQT_SLOT(removeTab()),
actionCollection(), "removecurrenttab"
);
{
- QLabel *l = new QLabel(i18n("&Jump:"), 0, "kde toolbar widget");
+ TQLabel *l = new TQLabel(i18n("&Jump:"), 0, "kde toolbar widget");
l->setBackgroundMode( Qt::PaletteButton );
l->setAlignment(
- (QApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft) |
+ (TQApplication::reverseLayout() ? Qt::AlignRight : Qt::AlignLeft) |
Qt::AlignVCenter | Qt::ShowPrefix
);
l->adjustSize();
@@ -84,22 +84,22 @@ View::View(Oblique *oblique)
LineEditAction *jumpAction = new LineEditAction(i18n("Jump Bar"), 0, 0, actionCollection(), "jump_text");
jumpAction->setWhatsThis(i18n("Only display items which contain this string"));
l->setBuddy(jumpAction->lineEdit());
- connect(jumpAction->lineEdit(), SIGNAL(textChanged(const QString&)), SLOT(jumpTextChanged(const QString&)));
+ connect(jumpAction->lineEdit(), TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(jumpTextChanged(const TQString&)));
}
- KStdAction::configureToolbars(this, SLOT(configureToolBars()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(configureToolBars()), actionCollection());
applyMainWindowSettings(KGlobal::config(), "Oblique View");
createGUI("obliqueui.rc");
KConfigGroup g(KGlobal::config(), "oblique");
- QStringList tabids = g.readListEntry("tabids");
+ TQStringList tabids = g.readListEntry("tabids");
- for (QStringList::Iterator i(tabids.begin()); i != tabids.end(); ++i)
+ for (TQStringList::Iterator i(tabids.begin()); i != tabids.end(); ++i)
{
- QString t = *i;
+ TQString t = *i;
int sliceid = t.section(':', 0, 0).toInt();
- QString fileOfQuery = t.section(':', 1, 1);
+ TQString fileOfQuery = t.section(':', 1, 1);
Slice *slice = oblique->base()->sliceById(sliceid);
if (!slice)
@@ -131,14 +131,14 @@ View::View(Oblique *oblique)
View::~View()
{
- QStringList tabids;
+ TQStringList tabids;
for (int i=0; i < mTabs->count(); i++)
{
Tree *tree = static_cast<Tree*>(mTabs->page(i));
int slice = tree->slice()->id();
- QString query = tree->fileOfQuery();
+ TQString query = tree->fileOfQuery();
- QString t = QString("%1:%2").arg(slice).arg(query);
+ TQString t = TQString("%1:%2").arg(slice).arg(query);
tabids.append(t);
}
@@ -151,7 +151,7 @@ void View::configureToolBars()
{
saveMainWindowSettings(KGlobal::config(), "Oblique View");
KEditToolbar dlg(actionCollection(), "obliqueui.rc");
- connect(&dlg, SIGNAL(newToolbarConfig()), SLOT(newToolBarConfig()));
+ connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_SLOT(newToolBarConfig()));
dlg.exec();
}
@@ -161,7 +161,7 @@ void View::newToolBarConfig()
applyMainWindowSettings(KGlobal::config(), "Oblique View");
}
-void View::closeEvent(QCloseEvent*)
+void View::closeEvent(TQCloseEvent*)
{
hide();
}
@@ -177,7 +177,7 @@ void View::addFiles()
void View::addDirectory()
{
- QString folder = KFileDialog::getExistingDirectory(":mediadir:", this,
+ TQString folder = KFileDialog::getExistingDirectory(":mediadir:", this,
i18n("Select Folder to Add"));
if (!folder)
@@ -213,20 +213,20 @@ void View::removeTab()
mTabs->tabBar()->hide();
}
-void View::currentTabChanged(QWidget *w)
+void View::currentTabChanged(TQWidget *w)
{
mRemoveTabAction->setEnabled(w != mTree);
mSchemaListAction->setTree(static_cast<Tree*>(w));
}
-void View::setSchema(const QString &file)
+void View::setSchema(const TQString &file)
{
Tree *current = static_cast<Tree*>(mTabs->currentPage());
current->setSchema(file);
}
-void View::jumpTextChanged(const QString &text)
+void View::jumpTextChanged(const TQString &text)
{
Tree *current = static_cast<Tree*>(mTabs->currentPage());
current->setLimit(text);
@@ -241,7 +241,7 @@ void View::use(Slice *s)
-LineEditAction::LineEditAction(const QString &text, const QObject *reciever, const char *slot, KActionCollection *parent, const char *name)
+LineEditAction::LineEditAction(const TQString &text, const TQObject *reciever, const char *slot, KActionCollection *parent, const char *name)
: KWidgetAction(new KLineEdit(0), text, KShortcut(0), reciever, slot, parent, name)
{
setAutoSized(true);