summaryrefslogtreecommitdiffstats
path: root/katapult/plugins/catalogs/amarokcatalog
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:30:03 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:30:03 -0600
commita3703745120ffe8f1beadd5fa58f9ab1470bc2f8 (patch)
tree387f9d7d55b7f6f99a9cd48699e3116000512e21 /katapult/plugins/catalogs/amarokcatalog
parent1a98207c22675fb23e0386982c5f73a33f5238d9 (diff)
downloadkatapult-a3703745120ffe8f1beadd5fa58f9ab1470bc2f8.tar.gz
katapult-a3703745120ffe8f1beadd5fa58f9ab1470bc2f8.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'katapult/plugins/catalogs/amarokcatalog')
-rw-r--r--katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp46
-rw-r--r--katapult/plugins/catalogs/amarokcatalog/amarokcatalog.h2
-rw-r--r--katapult/plugins/catalogs/amarokcatalog/settings.ui4
3 files changed, 26 insertions, 26 deletions
diff --git a/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp b/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp
index 7ca1f9b..6ad0892 100644
--- a/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp
+++ b/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.cpp
@@ -47,7 +47,7 @@ AmarokCatalog::AmarokCatalog(TQObject*, const char*, const TQStringList&): _resu
{
_minQueryLen = 3;
ActionRegistry::self()->registerAction(new ActionPlaySong());
- _gotCollectiontqStatus = false;
+ _gotCollectionStatus = false;
_dynamicCollection = false;
checkCollectionType();
@@ -58,16 +58,16 @@ AmarokCatalog::~AmarokCatalog()
void AmarokCatalog::queryChanged()
{
- int newtqStatus = 0;
+ int newStatus = 0;
TQString queryString = query();
if((TQString(queryString).remove(':').remove('\"').remove(' ').isEmpty()) || (queryString.length() < _minQueryLen)) {
reset();
setBestMatch(Match());
- settqStatus(0);
+ setStatus(0);
} else {
- if ( _gotCollectiontqStatus)
+ if ( _gotCollectionStatus)
{
if (!_dynamicCollection)
@@ -89,8 +89,8 @@ void AmarokCatalog::queryChanged()
queryList = TQStringList::split ( TQString(" "), TQString(queryString).replace(TQChar(':')," ").replace(TQChar('\''), " ").replace(TQChar('\''), "%") );
for(TQStringList::Iterator it = queryList.begin(); it != queryList.end(); ++it) {
- sqlQuery.append(TQString(" AND (t.title LIKE '\%%1\%'").tqarg(*it));
- sqlQuery.append(TQString(" OR a.name LIKE '\%%1\%')").tqarg(*it));
+ sqlQuery.append(TQString(" AND (t.title LIKE '\%%1\%'").arg(*it));
+ sqlQuery.append(TQString(" OR a.name LIKE '\%%1\%')").arg(*it));
}
sqlQuery.append(" ORDER BY a.name, t.title, s.percentage DESC");
@@ -101,7 +101,7 @@ void AmarokCatalog::queryChanged()
arg << sqlQuery;
if (!kapp->dcopClient()->call("amarok", "collection", "query(TQString)",
sqlQueryData, replyType, replyData)) {
- newtqStatus = 0;
+ newStatus = 0;
} else {
TQDataStream reply(replyData, IO_ReadOnly);
if (replyType == TQSTRINGLIST_OBJECT_NAME_STRING) {
@@ -109,7 +109,7 @@ void AmarokCatalog::queryChanged()
reply >> sqlResult;
if(sqlResult.isEmpty()) {
- newtqStatus = 0;
+ newStatus = 0;
} else {
reset();
//Reads information from SQL-Query
@@ -141,12 +141,12 @@ void AmarokCatalog::queryChanged()
//Checks if there are multiple results
if( !sqlResult[5].isEmpty() )
- newtqStatus = S_HasResults | S_Multiple;
+ newStatus = S_HasResults | S_Multiple;
else
- newtqStatus = S_HasResults;
+ newStatus = S_HasResults;
}
} else {
- newtqStatus = 0;
+ newStatus = 0;
}
}
@@ -163,8 +163,8 @@ void AmarokCatalog::queryChanged()
TQStringList clauses;
for(TQStringList::Iterator it = queryList.begin(); it != queryList.end(); ++it) {
- clauses += TQString(" (t.title LIKE '\%%1\%'").tqarg(*it) +
- TQString(" OR a.name LIKE '\%%1\%')").tqarg(*it);
+ clauses += TQString(" (t.title LIKE '\%%1\%'").arg(*it) +
+ TQString(" OR a.name LIKE '\%%1\%')").arg(*it);
}
sqlQuery.append(clauses.join(TQString(" AND ")));
sqlQuery.append(" ORDER BY a.name, t.title, s.percentage DESC");
@@ -176,7 +176,7 @@ void AmarokCatalog::queryChanged()
arg << sqlQuery;
if (!kapp->dcopClient()->call("amarok", "collection", "query(TQString)",
sqlQueryData, replyType, replyData)) {
- newtqStatus = 0;
+ newStatus = 0;
} else {
TQDataStream reply(replyData, IO_ReadOnly);
if (replyType == TQSTRINGLIST_OBJECT_NAME_STRING) {
@@ -184,7 +184,7 @@ void AmarokCatalog::queryChanged()
reply >> sqlResult;
if(sqlResult.isEmpty()) {
- newtqStatus = 0;
+ newStatus = 0;
} else {
reset();
//Reads information from SQL-Query
@@ -231,25 +231,25 @@ void AmarokCatalog::queryChanged()
//Checks if there are multiple results
if( !sqlResult[7].isEmpty() )
- newtqStatus = S_HasResults | S_Multiple;
+ newStatus = S_HasResults | S_Multiple;
else
- newtqStatus = S_HasResults;
+ newStatus = S_HasResults;
}
} else {
- newtqStatus = 0;
+ newStatus = 0;
}
}
} //end of >1.4.2 section
- settqStatus(newtqStatus);
+ setStatus(newStatus);
} else { //We haven't got the collection status
checkCollectionType();
reset();
setBestMatch(Match());
- settqStatus(0);
+ setStatus(0);
}
@@ -275,7 +275,7 @@ void AmarokCatalog::checkCollectionType()
arg << sqlQuery;
if (!kapp->dcopClient()->call("amarok", "collection", "query(TQString)", sqlQueryData, replyType, replyData))
{
- _gotCollectiontqStatus = false;
+ _gotCollectionStatus = false;
}
else
@@ -296,11 +296,11 @@ void AmarokCatalog::checkCollectionType()
_dynamicCollection = false;
}
- _gotCollectiontqStatus = true;
+ _gotCollectionStatus = true;
}
else
{
- _gotCollectiontqStatus = false;
+ _gotCollectionStatus = false;
}
}
}
diff --git a/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.h b/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.h
index aaff457..f103bec 100644
--- a/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.h
+++ b/katapult/plugins/catalogs/amarokcatalog/amarokcatalog.h
@@ -56,7 +56,7 @@ protected:
private:
unsigned int _minQueryLen;
bool _dynamicCollection;
- bool _gotCollectiontqStatus;
+ bool _gotCollectionStatus;
Song _result;
};
diff --git a/katapult/plugins/catalogs/amarokcatalog/settings.ui b/katapult/plugins/catalogs/amarokcatalog/settings.ui
index 384f4fc..350a20e 100644
--- a/katapult/plugins/catalogs/amarokcatalog/settings.ui
+++ b/katapult/plugins/catalogs/amarokcatalog/settings.ui
@@ -21,7 +21,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout1</cstring>
+ <cstring>layout1</cstring>
</property>
<hbox>
<property name="name">
@@ -64,7 +64,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>370</height>