summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/oblique/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun-plugins/oblique/file.cpp')
-rw-r--r--noatun-plugins/oblique/file.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/noatun-plugins/oblique/file.cpp b/noatun-plugins/oblique/file.cpp
index b478e0f..2946f23 100644
--- a/noatun-plugins/oblique/file.cpp
+++ b/noatun-plugins/oblique/file.cpp
@@ -38,7 +38,7 @@ File &File::operator=(const File &ref)
return *this;
}
-QString File::file() const
+TQString File::file() const
{
return property("file");
}
@@ -68,13 +68,13 @@ static const Map propertyMap[] =
{ 0, 0 }
};
-QString File::property(const QString &property) const
+TQString File::property(const TQString &property) const
{
- QString str = base()->property(id(), property);
+ TQString str = base()->property(id(), property);
if (!str)
{
- QString mangled = "ob::" + property + "_";
+ TQString mangled = "ob::" + property + "_";
str = base()->property(id(), mangled);
}
@@ -89,10 +89,10 @@ void File::makeCache()
for (int i=0; propertyMap[i].kfmi; i++)
{
- QString kname(propertyMap[i].kfmi);
+ TQString kname(propertyMap[i].kfmi);
if (info.isValid() && kname.length())
{
- QString val = info.item(kname).string(false);
+ TQString val = info.item(kname).string(false);
if (val=="---" || !val.stripWhiteSpace().length())
{ // grr
val = "";
@@ -106,7 +106,7 @@ void File::makeCache()
}
-void File::setProperty(const QString &key, const QString &value)
+void File::setProperty(const TQString &key, const TQString &value)
{
if (property(key) == value) return;
base()->setProperty(id(), key, value);
@@ -114,7 +114,7 @@ void File::setProperty(const QString &key, const QString &value)
p.data()->modified();
}
-void File::clearProperty(const QString &key)
+void File::clearProperty(const TQString &key)
{
if (property(key).isNull()) return;
base()->clearProperty(id(), key);
@@ -122,9 +122,9 @@ void File::clearProperty(const QString &key)
p.data()->modified();
}
-QStringList File::properties() const
+TQStringList File::properties() const
{
- QStringList l = base()->properties(id());
+ TQStringList l = base()->properties(id());
for (int i=0; propertyMap[i].noatun; i++)
{
@@ -147,7 +147,7 @@ void File::setPosition(Query *query, const File &after)
{
setProperty(
"Oblique:after_" + query->name() + '_',
- QString::number(after.id())
+ TQString::number(after.id())
);
}
@@ -155,10 +155,10 @@ bool File::getPosition(const Query *query, File *after) const
{
assert(query);
assert(after);
- QString name = "Oblique:after_" + query->name() + '_';
+ TQString name = "Oblique:after_" + query->name() + '_';
if (name.isEmpty()) return false;
- QString val = property(name);
+ TQString val = property(name);
if (val.isEmpty())
return false;
*after = File(mBase, val.toUInt());
@@ -175,17 +175,17 @@ void File::remove()
void File::addTo(Slice *slice)
{
- QString slices = property("Oblique:slices_");
- slices += "\n" + QString::number(slice->id(), 16);
+ TQString slices = property("Oblique:slices_");
+ slices += "\n" + TQString::number(slice->id(), 16);
setProperty("Oblique:slices_", slices);
emit mBase->addedTo(slice, *this);
}
void File::removeFrom(Slice *slice)
{
- QString slices = property("Oblique:slices_");
- QStringList sliceList = QStringList::split('\n', slices);
- QString sid = QString::number(slice->id(), 16);
+ TQString slices = property("Oblique:slices_");
+ TQStringList sliceList = TQStringList::split('\n', slices);
+ TQString sid = TQString::number(slice->id(), 16);
sliceList.remove(sid);
slices = sliceList.join("\n");
@@ -198,9 +198,9 @@ bool File::isIn(const Slice *slice) const
int id = slice->id();
if (id==0) return true;
- QString slices = property("Oblique:slices_");
- QStringList sliceList = QStringList::split('\n', slices);
- for (QStringList::Iterator i(sliceList.begin()); i!= sliceList.end(); ++i)
+ TQString slices = property("Oblique:slices_");
+ TQStringList sliceList = TQStringList::split('\n', slices);
+ for (TQStringList::Iterator i(sliceList.begin()); i!= sliceList.end(); ++i)
{
if ((*i).toInt(0, 16) == id) return true;
}
@@ -209,20 +209,20 @@ bool File::isIn(const Slice *slice) const
-Slice::Slice(Base *base, int id, const QString &name)
+Slice::Slice(Base *base, int id, const TQString &name)
{
mId = id;
mBase = base;
mName = name;
}
-QString Slice::name() const
+TQString Slice::name() const
{
if (mId == 0) return i18n("Complete Collection");
return mName;
}
-void Slice::setName(const QString &name)
+void Slice::setName(const TQString &name)
{
if (mId == 0) return;
mName = name;