summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/oblique/menu.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /noatun-plugins/oblique/menu.cpp
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun-plugins/oblique/menu.cpp')
-rw-r--r--noatun-plugins/oblique/menu.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/noatun-plugins/oblique/menu.cpp b/noatun-plugins/oblique/menu.cpp
index 0556d88..3867f19 100644
--- a/noatun-plugins/oblique/menu.cpp
+++ b/noatun-plugins/oblique/menu.cpp
@@ -7,25 +7,25 @@
#include "tree.h"
-FileMenu::FileMenu(QWidget *parent, Oblique *oblique, File file)
+FileMenu::FileMenu(TQWidget *parent, Oblique *oblique, File file)
: KPopupMenu(parent)
{
if (file)
mFiles.append(file);
insertItem(
BarIconSet("delete"), i18n("&Remove From Playlist"),
- this, SLOT(removeFromList())
+ this, TQT_SLOT(removeFromList())
);
- insertItem(i18n("&Properties"), this, SLOT(properties()));
+ insertItem(i18n("&Properties"), this, TQT_SLOT(properties()));
(new SliceListAction(
i18n("&Slices"), oblique,
- this, SLOT(toggleInSlice(Slice *)),
+ this, TQT_SLOT(toggleInSlice(Slice *)),
mFiles, this
))->plug(this);
}
-static void addTo(QValueList<File> &files, TreeItem *item)
+static void addTo(TQValueList<File> &files, TreeItem *item)
{
File f = item->file();
if (f) files.append(f);
@@ -39,27 +39,27 @@ static void addTo(QValueList<File> &files, TreeItem *item)
}
}
-FileMenu::FileMenu(QWidget *parent, Oblique *oblique, TreeItem *items)
+FileMenu::FileMenu(TQWidget *parent, Oblique *oblique, TreeItem *items)
: KPopupMenu(parent)
{
addTo(mFiles, items);
insertItem(
BarIconSet("delete"), i18n("&Remove From Playlist"),
- this, SLOT(removeFromList())
+ this, TQT_SLOT(removeFromList())
);
- insertItem(i18n("&Properties"), this, SLOT(properties()));
+ insertItem(i18n("&Properties"), this, TQT_SLOT(properties()));
(new SliceListAction(
i18n("&Slices"), oblique,
- this, SLOT(toggleInSlice(Slice *)),
+ this, TQT_SLOT(toggleInSlice(Slice *)),
mFiles, this
))->plug(this);
}
void FileMenu::removeFromList()
{
- for (QValueList<File>::Iterator i(mFiles.begin()); i != mFiles.end(); ++i)
+ for (TQValueList<File>::Iterator i(mFiles.begin()); i != mFiles.end(); ++i)
{
(*i).remove();
}
@@ -73,7 +73,7 @@ void FileMenu::properties()
void FileMenu::toggleInSlice(Slice *slice)
{
void (File::*task)(Slice*)=0;
- for (QValueList<File>::Iterator i(mFiles.begin()); i != mFiles.end(); ++i)
+ for (TQValueList<File>::Iterator i(mFiles.begin()); i != mFiles.end(); ++i)
{
if (!task)
{ // we check with the first one
@@ -90,18 +90,18 @@ void FileMenu::toggleInSlice(Slice *slice)
SliceListAction::SliceListAction(
- const QString &text, Oblique *oblique,
- QObject *reciever, const char *slot,
- const QValueList<File> &files, QObject *parent, const char *name
+ const TQString &text, Oblique *oblique,
+ TQObject *reciever, const char *slot,
+ const TQValueList<File> &files, TQObject *parent, const char *name
) : KActionMenu(text, parent, name)
{
mFiles = files;
mOblique = oblique;
slicesModified();
if (reciever)
- connect(this, SIGNAL(activated(Slice*)), reciever, slot);
- connect(popupMenu(), SIGNAL(activated(int)), SLOT(hit(int)));
- connect(oblique->base(), SIGNAL(slicesModified()), SLOT(slicesModified()));
+ connect(this, TQT_SIGNAL(activated(Slice*)), reciever, slot);
+ connect(popupMenu(), TQT_SIGNAL(activated(int)), TQT_SLOT(hit(int)));
+ connect(oblique->base(), TQT_SIGNAL(slicesModified()), TQT_SLOT(slicesModified()));
}
void SliceListAction::slicesModified()
@@ -110,12 +110,12 @@ void SliceListAction::slicesModified()
KPopupMenu *menu = popupMenu();
menu->clear();
- QPtrList<Slice> slices = mOblique->base()->slices();
+ TQPtrList<Slice> slices = mOblique->base()->slices();
int id=1;
- for (QPtrListIterator<Slice> i(slices); *i; ++i)
+ for (TQPtrListIterator<Slice> i(slices); *i; ++i)
{
Slice *s = *i;
if (s->id()==0 && mFiles.count())
@@ -151,16 +151,16 @@ void SliceListAction::hit(int index)
SchemaListAction::SchemaListAction(
- const QString &text,
- QObject *reciever, const char *slot,
- QObject *parent, const char *name
+ const TQString &text,
+ TQObject *reciever, const char *slot,
+ TQObject *parent, const char *name
) : KActionMenu(text, parent, name)
{
mTree = 0;
if (reciever)
- connect(this, SIGNAL(activated(const QString&)), reciever, slot);
- connect(popupMenu(), SIGNAL(aboutToShow()), SLOT(prepare()));
- connect(popupMenu(), SIGNAL(activated(int)), SLOT(hit(int)));
+ connect(this, TQT_SIGNAL(activated(const TQString&)), reciever, slot);
+ connect(popupMenu(), TQT_SIGNAL(aboutToShow()), TQT_SLOT(prepare()));
+ connect(popupMenu(), TQT_SIGNAL(activated(int)), TQT_SLOT(hit(int)));
}
void SchemaListAction::prepare()
@@ -174,12 +174,12 @@ void SchemaListAction::prepare()
int id=1;
- QStringList names = mTree->oblique()->schemaNames();
+ TQStringList names = mTree->oblique()->schemaNames();
- for (QStringList::Iterator i(names.begin()); i != names.end(); ++i)
+ for (TQStringList::Iterator i(names.begin()); i != names.end(); ++i)
{
Query q;
- QString title = mTree->oblique()->loadSchema(q, *i);
+ TQString title = mTree->oblique()->loadSchema(q, *i);
menu->insertItem(title, id);
@@ -197,11 +197,11 @@ void SchemaListAction::hit(int index)
-ObliquePropertiesDialog::ObliquePropertiesDialog(const QValueList<File> &files, QWidget *parent)
+ObliquePropertiesDialog::ObliquePropertiesDialog(const TQValueList<File> &files, TQWidget *parent)
: KPropertiesDialog(makeItems(files), parent), mFiles(files)
{
- connect(this, SIGNAL(propertiesClosed()), SLOT(deleteLater()));
- connect(this, SIGNAL(applied()), SLOT(modified()));
+ connect(this, TQT_SIGNAL(propertiesClosed()), TQT_SLOT(deleteLater()));
+ connect(this, TQT_SIGNAL(applied()), TQT_SLOT(modified()));
show();
}
@@ -209,17 +209,17 @@ ObliquePropertiesDialog::ObliquePropertiesDialog(const QValueList<File> &files,
void ObliquePropertiesDialog::modified()
{
// TODO reload the file's info
- for (QValueList<File>::Iterator i(mFiles.begin()); i != mFiles.end(); ++i)
+ for (TQValueList<File>::Iterator i(mFiles.begin()); i != mFiles.end(); ++i)
{
(*i).makeCache();
(*i).base()->notifyChanged(*i);
}
}
-KFileItemList ObliquePropertiesDialog::makeItems(const QValueList<File> &files)
+KFileItemList ObliquePropertiesDialog::makeItems(const TQValueList<File> &files)
{
KFileItemList kl;
- for (QValueList<File>::ConstIterator i(files.begin()); i != files.end(); ++i)
+ for (TQValueList<File>::ConstIterator i(files.begin()); i != files.end(); ++i)
{
File f = *i;
kl.append(new KFileItem(f.url(), f.property("mimetype"), KFileItem::Unknown));