summaryrefslogtreecommitdiffstats
path: root/libktorrent/labelview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:56 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:56 -0600
commitf96f74ffa7040e64ae3352e08c810c383c8a0ba2 (patch)
tree8f4cdf2f66860234f9ae889cd483b44150affb2c /libktorrent/labelview.cpp
parent0ad9f974f4ad92a3f1458a76d4df26d843efeab7 (diff)
downloadktorrent-f96f74ffa7040e64ae3352e08c810c383c8a0ba2.tar.gz
ktorrent-f96f74ffa7040e64ae3352e08c810c383c8a0ba2.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'libktorrent/labelview.cpp')
-rw-r--r--libktorrent/labelview.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/libktorrent/labelview.cpp b/libktorrent/labelview.cpp
index b46de3a..b36af4f 100644
--- a/libktorrent/labelview.cpp
+++ b/libktorrent/labelview.cpp
@@ -18,7 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include <algorithm>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlabel.h>
#include <kiconloader.h>
#include <kglobalsettings.h>
@@ -105,13 +105,13 @@ namespace kt
class LabelViewBox : public TQWidget
{
- TQVBoxLayout* tqlayout;
+ TQVBoxLayout* layout;
public:
LabelViewBox(TQWidget* parent) : TQWidget(parent)
{
setPaletteBackgroundColor(KGlobalSettings::baseColor());
- tqlayout = new TQVBoxLayout(this);
- tqlayout->setMargin(0);
+ layout = new TQVBoxLayout(this);
+ layout->setMargin(0);
}
virtual ~LabelViewBox()
@@ -120,24 +120,24 @@ namespace kt
void add(LabelViewItem* item)
{
item->reparent(this,TQPoint(0,0));
- tqlayout->add(item);
+ layout->add(item);
item->show();
}
void remove(LabelViewItem* item)
{
item->hide();
- tqlayout->remove(item);
+ layout->remove(item);
item->reparent(0,TQPoint(0,0));
}
void sorted(const std::list<LabelViewItem*> items)
{
for (LabelViewCItr i = items.begin();i != items.end();i++)
- tqlayout->remove(*i);
+ layout->remove(*i);
for (LabelViewCItr i = items.begin();i != items.end();i++)
- tqlayout->add(*i);
+ layout->add(*i);
}
};
@@ -184,11 +184,11 @@ namespace kt
selected = 0;
// update odd status of each item
- updateOddtqStatus();
+ updateOddStatus();
}
}
- void LabelView::updateOddtqStatus()
+ void LabelView::updateOddStatus()
{
bool odd = true;
LabelViewItr i = items.begin();
@@ -250,7 +250,7 @@ namespace kt
{
items.sort(LabelViewItemCmp());
item_box->sorted(items);
- updateOddtqStatus();
+ updateOddStatus();
}
}