summaryrefslogtreecommitdiffstats
path: root/katapult/plugins/catalogs/documentcatalog
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/documentcatalog
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/documentcatalog')
-rw-r--r--katapult/plugins/catalogs/documentcatalog/actionopendocument.cpp2
-rw-r--r--katapult/plugins/catalogs/documentcatalog/documentcatalog.cpp12
-rw-r--r--katapult/plugins/catalogs/documentcatalog/settings.ui4
3 files changed, 9 insertions, 9 deletions
diff --git a/katapult/plugins/catalogs/documentcatalog/actionopendocument.cpp b/katapult/plugins/catalogs/documentcatalog/actionopendocument.cpp
index 3de6f5a..06c71da 100644
--- a/katapult/plugins/catalogs/documentcatalog/actionopendocument.cpp
+++ b/katapult/plugins/catalogs/documentcatalog/actionopendocument.cpp
@@ -51,7 +51,7 @@ void ActionOpenDocument::execute(const KatapultItem* item) const
{
if(strcmp(item->className(), "Document") == 0 || strcmp(item->className(), "Directory") == 0) {
const Document *document = (const Document *) item;
- qDebug("%s", TQString("Running: %1").tqarg(document->path()).latin1());
+ qDebug("%s", TQString("Running: %1").arg(document->path()).latin1());
new KRun(document->path());
}
}
diff --git a/katapult/plugins/catalogs/documentcatalog/documentcatalog.cpp b/katapult/plugins/catalogs/documentcatalog/documentcatalog.cpp
index faa129c..bdcc1c6 100644
--- a/katapult/plugins/catalogs/documentcatalog/documentcatalog.cpp
+++ b/katapult/plugins/catalogs/documentcatalog/documentcatalog.cpp
@@ -98,7 +98,7 @@ void DocumentCatalog::refreshFiles()
void DocumentCatalog::queryChanged()
{
- int newtqStatus = 0;
+ int newStatus = 0;
if(query() == "")
{
// reset query
@@ -169,21 +169,21 @@ void DocumentCatalog::queryChanged()
if(currentDirDoc != 0 && path.isEmpty())
newBestMatch = Match(currentDirDoc, 100, currentPath.length());
- newtqStatus |= S_Active;
+ newStatus |= S_Active;
if(files.count() > 0)
{
- newtqStatus |= S_HasResults;
+ newStatus |= S_HasResults;
if(files.count() > 1 || files.at(0)->className() == "Directory")
- newtqStatus |= S_Multiple;
+ newStatus |= S_Multiple;
} else
- newtqStatus |= S_NoResults;
+ newStatus |= S_NoResults;
setBestMatch(newBestMatch);
} else {
setBestMatch(Match());
}
}
- settqStatus(newtqStatus);
+ setStatus(newStatus);
}
unsigned int DocumentCatalog::minQueryLen() const
diff --git a/katapult/plugins/catalogs/documentcatalog/settings.ui b/katapult/plugins/catalogs/documentcatalog/settings.ui
index 6f3c990..d688553 100644
--- a/katapult/plugins/catalogs/documentcatalog/settings.ui
+++ b/katapult/plugins/catalogs/documentcatalog/settings.ui
@@ -18,7 +18,7 @@
<vbox>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout1</cstring>
+ <cstring>layout1</cstring>
</property>
<hbox>
<property name="name">
@@ -66,7 +66,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>410</height>