summaryrefslogtreecommitdiffstats
path: root/plugins/infowidget
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infowidget')
-rw-r--r--plugins/infowidget/GeoIP.c6
-rw-r--r--plugins/infowidget/availabilitychunkbar.cpp6
-rw-r--r--plugins/infowidget/availabilitychunkbar.h3
-rw-r--r--plugins/infowidget/chunkbar.cpp100
-rw-r--r--plugins/infowidget/chunkbar.h23
-rw-r--r--plugins/infowidget/chunkdownloadview.cpp46
-rw-r--r--plugins/infowidget/chunkdownloadview.h13
-rw-r--r--plugins/infowidget/chunkdownloadviewbase.ui82
-rw-r--r--plugins/infowidget/downloadedchunkbar.cpp4
-rw-r--r--plugins/infowidget/downloadedchunkbar.h3
-rw-r--r--plugins/infowidget/fileview.cpp60
-rw-r--r--plugins/infowidget/fileview.h15
-rw-r--r--plugins/infowidget/flagdb.cpp40
-rw-r--r--plugins/infowidget/flagdb.h32
-rw-r--r--plugins/infowidget/floatspinbox.cpp48
-rw-r--r--plugins/infowidget/floatspinbox.h15
-rw-r--r--plugins/infowidget/infowidgetplugin.cpp14
-rw-r--r--plugins/infowidget/infowidgetplugin.h5
-rw-r--r--plugins/infowidget/infowidgetprefpage.cpp6
-rw-r--r--plugins/infowidget/infowidgetprefpage.h2
-rw-r--r--plugins/infowidget/iwfiletreediritem.cpp42
-rw-r--r--plugins/infowidget/iwfiletreediritem.h8
-rw-r--r--plugins/infowidget/iwfiletreeitem.cpp14
-rw-r--r--plugins/infowidget/iwfiletreeitem.h9
-rw-r--r--plugins/infowidget/iwpref.ui12
-rw-r--r--plugins/infowidget/localefloatvalidator.cpp10
-rw-r--r--plugins/infowidget/localefloatvalidator.h13
-rw-r--r--plugins/infowidget/peerview.cpp76
-rw-r--r--plugins/infowidget/peerview.h17
-rw-r--r--plugins/infowidget/statustab.cpp30
-rw-r--r--plugins/infowidget/statustab.h3
-rw-r--r--plugins/infowidget/statustabbase.ui134
-rw-r--r--plugins/infowidget/trackerview.cpp46
-rw-r--r--plugins/infowidget/trackerview.h5
-rw-r--r--plugins/infowidget/trackerviewbase.ui44
35 files changed, 499 insertions, 487 deletions
diff --git a/plugins/infowidget/GeoIP.c b/plugins/infowidget/GeoIP.c
index f71f830..81a9d80 100644
--- a/plugins/infowidget/GeoIP.c
+++ b/plugins/infowidget/GeoIP.c
@@ -65,10 +65,10 @@
const char GeoIP_country_code[247][3] = { "--","AP","EU","AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BM","BN","BO","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","FX","GA","GB","GD","GE","GF","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IN","IO","IQ","IR","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","ST","SV","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TM","TN","TO","TP","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","CS","ZA","ZM","ZR","ZW","A1","A2","O1"};
-const char GeoIP_country_code3[247][4] = { "--","AP","EU","AND","ARE","AFG","ATG","AIA","ALB","ARM","ANT","AGO","AQ","ARG","ASM","AUT","AUS","ABW","AZE","BIH","BRB","BGD","BEL","BFA","BGR","BHR","BDI","BEN","BMU","BRN","BOL","BRA","BHS","BTN","BV","BWA","BLR","BLZ","CAN","CC","COD","CAF","COG","CHE","CIV","COK","CHL","CMR","CHN","COL","CRI","CUB","CPV","CX","CYP","CZE","DEU","DJI","DNK","DMA","DOM","DZA","ECU","EST","EGY","ESH","ERI","ESP","ETH","FIN","FJI","FLK","FSM","FRO","FRA","FX","GAB","GBR","GRD","GEO","GUF","GHA","GIB","GRL","GMB","GIN","GLP","GNQ","GRC","GS","GTM","GUM","GNB","GUY","HKG","HM","HND","HRV","HTI","HUN","IDN","IRL","ISR","IND","IO","IRQ","IRN","ISL","ITA","JAM","JOR","JPN","KEN","KGZ","KHM","KIR","COM","KNA","PRK","KOR","KWT","CYM","KAZ","LAO","LBN","LCA","LIE","LKA","LBR","LSO","LTU","LUX","LVA","LBY","MAR","MCO","MDA","MDG","MHL","MKD","MLI","MMR","MNG","MAC","MNP","MTQ","MRT","MSR","MLT","MUS","MDV","MWI","MEX","MYS","MOZ","NAM","NCL","NER","NFK","NGA","NIC","NLD","NOR","NPL","NRU","NIU","NZL","OMN","PAN","PER","PYF","PNG","PHL","PAK","POL","SPM","PCN","PRI","PSE","PRT","PLW","PRY","QAT","REU","ROU","RUS","RWA","SAU","SLB","SYC","SDN","SWE","SGP","SHN","SVN","SJM","SVK","SLE","SMR","SEN","SOM","SUR","STP","SLV","SYR","SWZ","TCA","TCD","TF","TGO","THA","TJK","TKL","TLS","TKM","TUN","TON","TUR","TTO","TUV","TWN","TZA","UKR","UGA","UM","USA","URY","UZB","VAT","VCT","VEN","VGB","VIR","VNM","VUT","WLF","WSM","YEM","YT","SCG","ZAF","ZMB","ZR","ZWE","A1","A2","O1"};
+const char GeoIP_country_code3[247][4] = { "--","AP","EU","AND","ARE","AFG","ATG","AIA","ALB","ARM","ANT","AGO","AQ","ARG","ASM","AUT","AUS","ABW","AZE","BIH","BRB","BGD","BEL","BFA","BGR","BHR","BDI","BEN","BMU","BRN","BOL","BRA","BHS","BTN","BV","BWA","BLR","BLZ","CAN","CC","COD","CAF","COG","CHE","CIV","COK","CHL","CMR","CHN","COL","CRI","CUB","CPV","CX","CYP","CZE","DEU","DJI","DNK","DMA","DOM","DZA","ECU","EST","EGY","ESH","ERI","ESP","ETH","FIN","FJI","FLK","FSM","FRO","FRA","FX","GAB","GBR","GRD","GEO","GUF","GHA","GIB","GRL","GMB","GIN","GLP","GNQ","GRC","GS","GTM","GUM","GNB","GUY","HKG","HM","HND","HRV","HTI","HUN","IDN","IRL","ISR","IND","IO","IRQ","IRN","ISL","ITA","JAM","JOR","JPN","KEN","KGZ","KHM","KIR","COM","KNA","PRK","KOR","KWT","CYM","KAZ","LAO","LBN","LCA","LIE","LKA","LBR","LSO","LTU","LUX","LVA","LBY","MAR","MCO","MDA","MDG","MHL","MKD","MLI","MMR","MNG","MAC","MNP","MTQ","MRT","MSR","MLT","MUS","MDV","MWI","MEX","MYS","MOZ","NAM","NCL","NER","NFK","NGA","NIC","NLD","NOR","NPL","NRU","NIU","NZL","OMN","PAN","PER","PYF","PNG","PHL","PAK","POL","SPM","PCN","PRI","PSE","PRT","PLW","PRY","TQAT","REU","ROU","RUS","RWA","SAU","SLB","SYC","SDN","SWE","SGP","SHN","SVN","SJM","SVK","SLE","SMR","SEN","SOM","SUR","STP","SLV","SYR","SWZ","TCA","TCD","TF","TGO","THA","TJK","TKL","TLS","TKM","TUN","TON","TUR","TTO","TUV","TWN","TZA","UKR","UGA","UM","USA","URY","UZB","VAT","VCT","VEN","VGB","VIR","VNM","VUT","WLF","WSM","YEM","YT","SCG","ZAF","ZMB","ZR","ZWE","A1","A2","O1"};
-const char * GeoIP_country_name[247] = {"N/A","Asia/Pacific Region","Europe","Andorra","United Arab Emirates","Afghanistan","Antigua and Barbuda","Anguilla","Albania","Armenia","Netherlands Antilles","Angola","Antarctica","Argentina","American Samoa","Austria","Australia","Aruba","Azerbaijan","Bosnia and Herzegovina","Barbados","Bangladesh","Belgium","Burkina Faso","Bulgaria","Bahrain","Burundi","Benin","Bermuda","Brunei Darussalam","Bolivia","Brazil","Bahamas","Bhutan","Bouvet Island","Botswana","Belarus","Belize","Canada","Cocos (Keeling) Islands","Congo, The Democratic Republic of the","Central African Republic","Congo","Switzerland","Cote D'Ivoire","Cook Islands","Chile","Cameroon","China","Colombia","Costa Rica","Cuba","Cape Verde","Christmas Island","Cyprus","Czech Republic","Germany","Djibouti","Denmark","Dominica","Dominican Republic","Algeria","Ecuador","Estonia","Egypt","Western Sahara","Eritrea","Spain","Ethiopia","Finland","Fiji","Falkland Islands (Malvinas)","Micronesia, Federated States of","Faroe Islands","France","France, Metropolitan","Gabon","United Kingdom","Grenada","Georgia","French Guiana","Ghana","Gibraltar","Greenland","Gambia","Guinea","Guadeloupe","Equatorial Guinea","Greece","South Georgia and the South Sandwich Islands","Guatemala","Guam","Guinea-Bissau","Guyana","Hong Kong","Heard Island and McDonald Islands","Honduras","Croatia","Haiti","Hungary","Indonesia","Ireland","Israel","India","British Indian Ocean Territory","Iraq","Iran, Islamic Republic of","Iceland","Italy","Jamaica","Jordan","Japan","Kenya","Kyrgyzstan","Cambodia","Kiribati","Comoros","Saint Kitts and Nevis",
-"Korea, Democratic People's Republic of","Korea, Republic of","Kuwait","Cayman Islands","Kazakhstan","Lao People's Democratic Republic","Lebanon","Saint Lucia","Liechtenstein","Sri Lanka","Liberia","Lesotho","Lithuania","Luxembourg","Latvia","Libyan Arab Jamahiriya","Morocco","Monaco","Moldova, Republic of","Madagascar","Marshall Islands","Macedonia","Mali","Myanmar","Mongolia","Macau","Northern Mariana Islands","Martinique","Mauritania","Montserrat","Malta","Mauritius","Maldives","Malawi","Mexico","Malaysia","Mozambique","Namibia","New Caledonia","Niger","Norfolk Island","Nigeria","Nicaragua","Netherlands","Norway","Nepal","Nauru","Niue","New Zealand","Oman","Panama","Peru","French Polynesia","Papua New Guinea","Philippines","Pakistan","Poland","Saint Pierre and Miquelon","Pitcairn Islands","Puerto Rico","Palestinian Territory","Portugal","Palau","Paraguay","Qatar","Reunion","Romania","Russian Federation","Rwanda","Saudi Arabia","Solomon Islands","Seychelles","Sudan","Sweden","Singapore","Saint Helena","Slovenia","Svalbard and Jan Mayen","Slovakia","Sierra Leone","San Marino","Senegal","Somalia","Suriname","Sao Tome and Principe","El Salvador","Syrian Arab Republic","Swaziland","Turks and Caicos Islands","Chad","French Southern Territories","Togo","Thailand","Tajikistan","Tokelau","Turkmenistan","Tunisia","Tonga","East Timor","Turkey","Trinidad and Tobago","Tuvalu","Taiwan","Tanzania, United Republic of","Ukraine","Uganda","United States Minor Outlying Islands","United States","Uruguay","Uzbekistan","Holy See (Vatican City State)","Saint Vincent and the Grenadines","Venezuela","Virgin Islands, British","Virgin Islands, U.S.","Vietnam","Vanuatu","Wallis and Futuna","Samoa","Yemen","Mayotte","Serbia and Montenegro","South Africa","Zambia","Zaire","Zimbabwe",
+const char * GeoIP_country_name[247] = {"N/A","Asia/Pacific Region","Europe","Andorra","United Arab Emirates","Afghanistan","Antigua and Barbuda","Anguilla","Albania","Armenia","Netherlands Antilles","Angola","Antarctica","Argentina","American Samoa","Austria","Australia","Aruba","Azerbaijan","Bosnia and Herzegovina","Barbados","Bangladesh","Belgium","Burkina Faso","Bulgaria","Bahrain","Burundi","Benin","Bermuda","Brunei Darussalam","Bolivia","Brazil","Bahamas","Bhutan","Bouvet Island","Botswana","Belarus","Belize","Canada","Cocos (Keeling) Islands","Congo, The Detqmocratic Republic of the","Central African Republic","Congo","Switzerland","Cote D'Ivoire","Cook Islands","Chile","Cameroon","China","Colombia","Costa Rica","Cuba","Cape Verde","Christmas Island","Cyprus","Czech Republic","Germany","Djibouti","Denmark","Dominica","Dominican Republic","Algeria","Ecuador","Estonia","Egypt","Western Sahara","Eritrea","Spain","Ethiopia","Finland","Fiji","Falkland Islands (Malvinas)","Micronesia, Federated States of","Faroe Islands","France","France, Metropolitan","Gabon","United Kingdom","Grenada","Georgia","French Guiana","Ghana","Gibraltar","Greenland","Gambia","Guinea","Guadeloupe","Equatorial Guinea","Greece","South Georgia and the South Sandwich Islands","Guatemala","Guam","Guinea-Bissau","Guyana","Hong Kong","Heard Island and McDonald Islands","Honduras","Croatia","Haiti","Hungary","Indonesia","Ireland","Israel","India","British Indian Ocean Territory","Iraq","Iran, Islamic Republic of","Iceland","Italy","Jamaica","Jordan","Japan","Kenya","Kyrgyzstan","Cambodia","Kiribati","Comoros","Saint Kitts and Nevis",
+"Korea, Detqmocratic People's Republic of","Korea, Republic of","Kuwait","Cayman Islands","Kazakhstan","Lao People's Detqmocratic Republic","Lebanon","Saint Lucia","Liechtenstein","Sri Lanka","Liberia","Lesotho","Lithuania","Luxembourg","Latvia","Libyan Arab Jamahiriya","Morocco","Monaco","Moldova, Republic of","Madagascar","Marshall Islands","Macedonia","Mali","Myanmar","Mongolia","Macau","Northern Mariana Islands","Martinique","Mauritania","Montserrat","Malta","Mauritius","Maldives","Malawi","Mexico","Malaysia","Mozambique","Namibia","New Caledonia","Niger","Norfolk Island","Nigeria","Nicaragua","Netherlands","Norway","Nepal","Nauru","Niue","New Zealand","Oman","Panama","Peru","French Polynesia","Papua New Guinea","Philippines","Pakistan","Poland","Saint Pierre and Miquelon","Pitcairn Islands","Puerto Rico","Palestinian Territory","Portugal","Palau","Paraguay","Qatar","Reunion","Romania","Russian Federation","Rwanda","Saudi Arabia","Solomon Islands","Seychelles","Sudan","Sweden","Singapore","Saint Helena","Slovenia","Svalbard and Jan Mayen","Slovakia","Sierra Leone","San Marino","Senegal","Somalia","Suriname","Sao Tome and Principe","El Salvador","Syrian Arab Republic","Swaziland","Turks and Caicos Islands","Chad","French Southern Territories","Togo","Thailand","Tajikistan","Tokelau","Turkmenistan","Tunisia","Tonga","East Timor","Turkey","Trinidad and Tobago","Tuvalu","Taiwan","Tanzania, United Republic of","Ukraine","Uganda","United States Minor Outlying Islands","United States","Uruguay","Uzbekistan","Holy See (Vatican City State)","Saint Vincent and the Grenadines","Venezuela","Virgin Islands, British","Virgin Islands, U.S.","Vietnam","Vanuatu","Wallis and Futuna","Samoa","Yemen","Mayotte","Serbia and Montenegro","South Africa","Zambia","Zaire","Zimbabwe",
"Anonymous Proxy","Satellite Provider","Other"};
const char GeoIP_country_continent[247][3] = {"--","AS","EU","EU","AS","AS","SA","SA","EU","AS","SA","AF","AN","SA","OC","EU","OC","SA","AS","EU","SA","AS","EU","AF","EU","AS","AF","AF","SA","AS","SA","SA","SA","AS","AF","AF","EU","SA","NA","AS","AF","AF","AF","EU","AF","OC","SA","AF","AS","SA","SA","SA","AF","AS","AS","EU","EU","AF","EU","SA","SA","AF","SA","EU","AF","AF","AF","EU","AF","EU","OC","SA","OC","EU","EU","EU","AF","EU","SA","AS","SA","AF","EU","SA","AF","AF","SA","AF","EU","SA","SA","OC","AF","SA","AS","AF","SA","EU","SA","EU","AS","EU","AS","AS","AS","AS","AS","EU","EU","SA","AS","AS","AF","AS","AS","OC","AF","SA","AS","AS","AS","SA","AS","AS","AS","SA","EU","AS","AF","AF","EU","EU","EU","AF","AF","EU","EU","AF","OC","EU","AF","AS","AS","AS","OC","SA","AF","SA","EU","AF","AS","AF","NA","AS","AF","AF","OC","AF","OC","AF","SA","EU","EU","AS","OC","OC","OC","AS","SA","SA","OC","OC","AS","AS","EU","SA","OC","SA","AS","EU","OC","SA","AS","AF","EU","AS","AF","AS","OC","AF","AF","EU","AS","AF","EU","EU","EU","AF","EU","AF","AF","SA","AF","SA","AS","AF","SA","AF","AF","AF","AS","AS","OC","AS","AF","OC","AS","AS","SA","OC","AS","AF","EU","AF","OC","NA","SA","AS","EU","SA","SA","SA","SA","AS","OC","OC","OC","AS","AF","EU","AF","AF","AF","AF"};
diff --git a/plugins/infowidget/availabilitychunkbar.cpp b/plugins/infowidget/availabilitychunkbar.cpp
index 9d96268..23c4dba 100644
--- a/plugins/infowidget/availabilitychunkbar.cpp
+++ b/plugins/infowidget/availabilitychunkbar.cpp
@@ -17,7 +17,7 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <qtooltip.h>
+#include <tqtooltip.h>
#include <klocale.h>
#include <util/bitset.h>
@@ -27,9 +27,9 @@
namespace kt
{
-AvailabilityChunkBar::AvailabilityChunkBar(QWidget* parent, const char* name): ChunkBar(parent, name)
+AvailabilityChunkBar::AvailabilityChunkBar(TQWidget* tqparent, const char* name): ChunkBar(tqparent, name)
{
- QToolTip::add(this, i18n("<img src=\"available_color\">&nbsp; - Available Chunks<br><img src=\"unavailable_color\">&nbsp; - Unavailable Chunks<br><img src=\"excluded_color\">&nbsp; - Excluded Chunks"));
+ TQToolTip::add(this, i18n("<img src=\"available_color\">&nbsp; - Available Chunks<br><img src=\"unavailable_color\">&nbsp; - Unavailable Chunks<br><img src=\"excluded_color\">&nbsp; - Excluded Chunks"));
}
diff --git a/plugins/infowidget/availabilitychunkbar.h b/plugins/infowidget/availabilitychunkbar.h
index a5ae625..31a5b65 100644
--- a/plugins/infowidget/availabilitychunkbar.h
+++ b/plugins/infowidget/availabilitychunkbar.h
@@ -31,8 +31,9 @@ namespace kt
class AvailabilityChunkBar : public ChunkBar
{
Q_OBJECT
+ TQ_OBJECT
public:
- AvailabilityChunkBar(QWidget* parent, const char* name);
+ AvailabilityChunkBar(TQWidget* tqparent, const char* name);
virtual ~AvailabilityChunkBar();
virtual const bt::BitSet & getBitSet() const;
diff --git a/plugins/infowidget/chunkbar.cpp b/plugins/infowidget/chunkbar.cpp
index a30571a..48f0aac 100644
--- a/plugins/infowidget/chunkbar.cpp
+++ b/plugins/infowidget/chunkbar.cpp
@@ -18,16 +18,16 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <qpainter.h>
-#include <qpen.h>
-#include <qbrush.h>
-#include <qvaluelist.h>
-#include <qpixmap.h>
+#include <tqpainter.h>
+#include <tqpen.h>
+#include <tqbrush.h>
+#include <tqvaluelist.h>
+#include <tqpixmap.h>
#include <math.h>
-#include <qtooltip.h>
+#include <tqtooltip.h>
#include <klocale.h>
-#include <qmime.h>
-#include <qimage.h>
+#include <tqmime.h>
+#include <tqimage.h>
#include <util/log.h>
#include <interfaces/torrentinterface.h>
#include <util/bitset.h>
@@ -47,7 +47,7 @@ namespace kt
};
- static void FillAndFrameBlack(QImage* image, uint color, int size)
+ static void FillAndFrameBlack(TQImage* image, uint color, int size)
{
image->fill(color);
for (int i = 0; i < size; i++)
@@ -68,23 +68,23 @@ namespace kt
return;
images_initialized = true;
- QMimeSourceFactory* factory = QMimeSourceFactory::defaultFactory();
+ TQMimeSourceFactory* factory = TQMimeSourceFactory::defaultFactory();
- QImage excluded(16, 16, 32);
- FillAndFrameBlack(&excluded, bar->colorGroup().color(QColorGroup::Mid).pixel(), 16);
+ TQImage excluded(16, 16, 32);
+ FillAndFrameBlack(&excluded, TQColor(bar->tqcolorGroup().color(TQColorGroup::Mid)).pixel(), 16);
factory->setImage("excluded_color", excluded);
- QImage available(16, 16, 32);
- FillAndFrameBlack(&available, bar->colorGroup().highlight().pixel(), 16);
+ TQImage available(16, 16, 32);
+ FillAndFrameBlack(&available, bar->tqcolorGroup().highlight().pixel(), 16);
factory->setImage("available_color", available);
- QImage unavailable(16, 16, 32);
- FillAndFrameBlack(&unavailable, bar->colorGroup().base().pixel(), 16);
+ TQImage unavailable(16, 16, 32);
+ FillAndFrameBlack(&unavailable, bar->tqcolorGroup().base().pixel(), 16);
factory->setImage("unavailable_color", unavailable);
}
- ChunkBar::ChunkBar(QWidget *parent, const char *name)
- : QFrame(parent, name),curr_tc(0)
+ ChunkBar::ChunkBar(TQWidget *tqparent, const char *name)
+ : TQFrame(tqparent, name),curr_tc(0)
{
setFrameShape(StyledPanel);
setFrameShadow(Sunken);
@@ -95,7 +95,7 @@ namespace kt
InitializeToolTipImages(this);
- QToolTip::add(this, i18n("<img src=\"available_color\">&nbsp; - Downloaded Chunks<br><img src=\"unavailable_color\">&nbsp; - Chunks to Download<br><img src=\"excluded_color\">&nbsp; - Excluded Chunks"));
+ TQToolTip::add(this, i18n("<img src=\"available_color\">&nbsp; - Downloaded Chunks<br><img src=\"unavailable_color\">&nbsp; - Chunks to Download<br><img src=\"excluded_color\">&nbsp; - Excluded Chunks"));
}
@@ -106,7 +106,7 @@ namespace kt
void ChunkBar::updateBar()
{
const BitSet & bs = getBitSet();
- QSize s = contentsRect().size();
+ TQSize s = contentsRect().size();
bool changed = !(curr == bs);
if (show_excluded && curr_tc)
{
@@ -121,22 +121,22 @@ namespace kt
// PROFILE("ChunkBar::updateBar");
// Out() << "Pixmap : " << s.width() << " " << s.height() << endl;
pixmap.resize(s);
- pixmap.fill(colorGroup().color(QColorGroup::Base));
- QPainter painter(&pixmap);
+ pixmap.fill(tqcolorGroup().color(TQColorGroup::Base));
+ TQPainter painter(&pixmap);
drawBarContents(&painter);
update();
}
}
- void ChunkBar::drawContents(QPainter *p)
+ void ChunkBar::drawContents(TQPainter *p)
{
// first draw background
if (isEnabled())
- p->setBrush(colorGroup().base());
+ p->setBrush(tqcolorGroup().base());
else
- p->setBrush(colorGroup().background());
+ p->setBrush(tqcolorGroup().background());
- p->setPen(Qt::NoPen);
+ p->setPen(TQt::NoPen);
p->drawRect(contentsRect());
if (isEnabled())
p->drawPixmap(contentsRect(),pixmap);
@@ -145,16 +145,16 @@ namespace kt
void ChunkBar::setTC(kt::TorrentInterface* tc)
{
curr_tc = tc;
- QSize s = contentsRect().size();
+ TQSize s = contentsRect().size();
//Out() << "Pixmap : " << s.width() << " " << s.height() << endl;
pixmap.resize(s);
- pixmap.fill(colorGroup().color(QColorGroup::Base));
- QPainter painter(&pixmap);
+ pixmap.fill(tqcolorGroup().color(TQColorGroup::Base));
+ TQPainter painter(&pixmap);
drawBarContents(&painter);
update();
}
- void ChunkBar::drawBarContents(QPainter *p)
+ void ChunkBar::drawBarContents(TQPainter *p)
{
p->saveWorldMatrix();
if (curr_tc)
@@ -164,15 +164,15 @@ namespace kt
const BitSet & bs = getBitSet();
curr = bs;
if (bs.allOn())
- drawAllOn(p,colorGroup().highlight());
+ drawAllOn(p,tqcolorGroup().highlight());
else if (s.total_chunks > w)
- drawMoreChunksThenPixels(p,bs,colorGroup().highlight());
+ drawMoreChunksThenPixels(p,bs,tqcolorGroup().highlight());
else
- drawEqual(p,bs,colorGroup().highlight());
+ drawEqual(p,bs,tqcolorGroup().highlight());
if (show_excluded && s.num_chunks_excluded > 0)
{
- QColor c = colorGroup().color(QColorGroup::Mid);
+ TQColor c = tqcolorGroup().color(TQColorGroup::Mid);
if (curr_ebs.allOn())
drawAllOn(p,c);
else if (s.total_chunks > w)
@@ -184,10 +184,10 @@ namespace kt
p->restoreWorldMatrix();
}
- void ChunkBar::drawEqual(QPainter *p,const BitSet & bs,const QColor & color)
+ void ChunkBar::drawEqual(TQPainter *p,const BitSet & bs,const TQColor & color)
{
- //p->setPen(QPen(colorGroup().highlight(),1,Qt::SolidLine));
- QColor c = color;
+ //p->setPen(TQPen(tqcolorGroup().highlight(),1,TQt::SolidLine));
+ TQColor c = color;
Uint32 w = contentsRect().width();
double scale = 1.0;
@@ -195,10 +195,10 @@ namespace kt
if (curr_tc->getStats().total_chunks != w)
scale = (double)w / total_chunks;
- p->setPen(QPen(c,1,Qt::SolidLine));
+ p->setPen(TQPen(c,1,TQt::SolidLine));
p->setBrush(c);
- QValueList<Range> rs;
+ TQValueList<Range> rs;
for (Uint32 i = 0;i < bs.getNumBits();i++)
{
@@ -225,9 +225,9 @@ namespace kt
}
}
- QRect r = contentsRect();
+ TQRect r = contentsRect();
- for (QValueList<Range>::iterator i = rs.begin();i != rs.end();++i)
+ for (TQValueList<Range>::iterator i = rs.begin();i != rs.end();++i)
{
Range & ra = *i;
int rw = ra.last - ra.first + 1;
@@ -235,11 +235,11 @@ namespace kt
}
}
- void ChunkBar::drawMoreChunksThenPixels(QPainter *p,const BitSet & bs,const QColor & color)
+ void ChunkBar::drawMoreChunksThenPixels(TQPainter *p,const BitSet & bs,const TQColor & color)
{
Uint32 w = contentsRect().width();
double chunks_per_pixel = (double)bs.getNumBits() / w;
- QValueList<Range> rs;
+ TQValueList<Range> rs;
for (Uint32 i = 0;i < w;i++)
{
@@ -274,14 +274,14 @@ namespace kt
}
}
- QRect r = contentsRect();
+ TQRect r = contentsRect();
- for (QValueList<Range>::iterator i = rs.begin();i != rs.end();++i)
+ for (TQValueList<Range>::iterator i = rs.begin();i != rs.end();++i)
{
Range & ra = *i;
int rw = ra.last - ra.first + 1;
int fac = ra.fac;
- QColor c = color;
+ TQColor c = color;
if (fac < 100)
{
// do some rounding off
@@ -293,18 +293,18 @@ namespace kt
fac = 65;
c = color.light(200-fac);
}
- p->setPen(QPen(c,1,Qt::SolidLine));
+ p->setPen(TQPen(c,1,TQt::SolidLine));
p->setBrush(c);
p->drawRect(ra.first,0,rw,r.height());
}
}
- void ChunkBar::drawAllOn(QPainter *p,const QColor & color)
+ void ChunkBar::drawAllOn(TQPainter *p,const TQColor & color)
{
- p->setPen(QPen(color,1,Qt::SolidLine));
+ p->setPen(TQPen(color,1,TQt::SolidLine));
p->setBrush(color);
- QSize s = contentsRect().size();
+ TQSize s = contentsRect().size();
p->drawRect(0,0,s.width(),s.height());
}
}
diff --git a/plugins/infowidget/chunkbar.h b/plugins/infowidget/chunkbar.h
index 6cf0d6a..32366c3 100644
--- a/plugins/infowidget/chunkbar.h
+++ b/plugins/infowidget/chunkbar.h
@@ -21,11 +21,11 @@
#ifndef CHUNKBAR_H
#define CHUNKBAR_H
-#include <qlabel.h>
+#include <tqlabel.h>
#include <util/bitset.h>
-#include <qpixmap.h>
+#include <tqpixmap.h>
-class QPainter;
+class TQPainter;
namespace kt
{
@@ -47,30 +47,31 @@ namespace kt
* BitSets can represent which chunks are downloaded, which chunks are available
* and which chunks are excluded.
*/
- class ChunkBar : public QFrame
+ class ChunkBar : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
- ChunkBar(QWidget *parent = 0, const char *name = 0);
+ ChunkBar(TQWidget *tqparent = 0, const char *name = 0);
virtual ~ChunkBar();
void setTC(kt::TorrentInterface* tc);
virtual const bt::BitSet & getBitSet() const = 0;
- virtual void drawContents(QPainter *p);
+ virtual void drawContents(TQPainter *p);
virtual void updateBar();
private:
- void drawEqual(QPainter *p,const bt::BitSet & bs,const QColor & color);
- void drawMoreChunksThenPixels(QPainter *p,const bt::BitSet & bs,const QColor & color);
- void drawAllOn(QPainter *p,const QColor & color);
- void drawBarContents(QPainter *p);
+ void drawEqual(TQPainter *p,const bt::BitSet & bs,const TQColor & color);
+ void drawMoreChunksThenPixels(TQPainter *p,const bt::BitSet & bs,const TQColor & color);
+ void drawAllOn(TQPainter *p,const TQColor & color);
+ void drawBarContents(TQPainter *p);
protected:
kt::TorrentInterface* curr_tc;
bool show_excluded;
bt::BitSet curr,curr_ebs;
- QPixmap pixmap;
+ TQPixmap pixmap;
};
}
diff --git a/plugins/infowidget/chunkdownloadview.cpp b/plugins/infowidget/chunkdownloadview.cpp
index 276a311..3258441 100644
--- a/plugins/infowidget/chunkdownloadview.cpp
+++ b/plugins/infowidget/chunkdownloadview.cpp
@@ -18,7 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include <klocale.h>
-#include <qlabel.h>
+#include <tqlabel.h>
#include <interfaces/chunkdownloadinterface.h>
#include <interfaces/functions.h>
#include <interfaces/torrentinterface.h>
@@ -42,14 +42,14 @@ namespace kt
ChunkDownloadInterface::Stats s;
cd->getStats(s);
- setText(0,QString::number(s.chunk_index));
- setText(1,QString("%1 / %2").arg(s.pieces_downloaded).arg(s.total_pieces));
+ setText(0,TQString::number(s.chunk_index));
+ setText(1,TQString("%1 / %2").tqarg(s.pieces_downloaded).tqarg(s.total_pieces));
setText(2,s.current_peer_id);
setText(3,KBytesPerSecToString(s.download_speed / 1024.0));
- setText(4,QString::number(s.num_downloaders));
+ setText(4,TQString::number(s.num_downloaders));
}
- int ChunkDownloadViewItem::compare(QListViewItem * i,int col,bool) const
+ int ChunkDownloadViewItem::compare(TQListViewItem * i,int col,bool) const
{
ChunkDownloadViewItem* it = (ChunkDownloadViewItem*)i;
kt::ChunkDownloadInterface* ocd = it->cd;
@@ -61,7 +61,7 @@ namespace kt
{
case 0: return CompareVal(s.chunk_index,os.chunk_index);
case 1: return CompareVal(s.pieces_downloaded,os.pieces_downloaded);
- case 2: return QString::compare(s.current_peer_id,os.current_peer_id);
+ case 2: return TQString::compare(s.current_peer_id,os.current_peer_id);
case 3: return CompareVal(s.download_speed,os.download_speed);
case 4: return CompareVal(s.num_downloaders,os.num_downloaders);
}
@@ -69,16 +69,16 @@ namespace kt
}
- ChunkDownloadView::ChunkDownloadView(QWidget *parent, const char *name)
- : ChunkDownloadViewBase(parent, name)
+ ChunkDownloadView::ChunkDownloadView(TQWidget *tqparent, const char *name)
+ : ChunkDownloadViewBase(tqparent, name)
{
m_list_view->setShowSortIndicator(true);
m_list_view->setAllColumnsShowFocus(true);
- m_list_view->setColumnAlignment(0,Qt::AlignLeft);
- m_list_view->setColumnAlignment(1,Qt::AlignCenter);
- m_list_view->setColumnAlignment(3,Qt::AlignRight);
- m_list_view->setColumnAlignment(4,Qt::AlignRight);
+ m_list_view->setColumnAlignment(0,TQt::AlignLeft);
+ m_list_view->setColumnAlignment(1,TQt::AlignCenter);
+ m_list_view->setColumnAlignment(3,TQt::AlignRight);
+ m_list_view->setColumnAlignment(4,TQt::AlignRight);
curr_tc = 0;
}
@@ -95,7 +95,7 @@ namespace kt
void ChunkDownloadView::removeDownload(kt::ChunkDownloadInterface* cd)
{
- if (!items.contains(cd))
+ if (!items.tqcontains(cd))
return;
ChunkDownloadViewItem* it = items[cd];
@@ -121,7 +121,7 @@ namespace kt
if (!curr_tc)
return;
- QMap<ChunkDownloadInterface*,ChunkDownloadViewItem*>::iterator i = items.begin();
+ TQMap<ChunkDownloadInterface*,ChunkDownloadViewItem*>::iterator i = items.begin();
while (i != items.end())
{
ChunkDownloadViewItem* it = i.data();
@@ -131,24 +131,24 @@ namespace kt
m_list_view->sort();
const TorrentStats & s = curr_tc->getStats();
- m_chunks_downloading->setText(QString::number(s.num_chunks_downloading));
- m_chunks_downloaded->setText(QString::number(s.num_chunks_downloaded));
- m_total_chunks->setText(QString::number(s.total_chunks));
- m_excluded_chunks->setText(QString::number(s.num_chunks_excluded));
- m_chunks_left->setText(QString::number(s.num_chunks_left));
+ m_chunks_downloading->setText(TQString::number(s.num_chunks_downloading));
+ m_chunks_downloaded->setText(TQString::number(s.num_chunks_downloaded));
+ m_total_chunks->setText(TQString::number(s.total_chunks));
+ m_excluded_chunks->setText(TQString::number(s.num_chunks_excluded));
+ m_chunks_left->setText(TQString::number(s.num_chunks_left));
if( s.chunk_size / 1024 < 1024 )
- m_size_chunks->setText(QString::number(s.chunk_size / 1024) + "." + QString::number((s.chunk_size % 1024) / 100) + " KB");
+ m_size_chunks->setText(TQString::number(s.chunk_size / 1024) + "." + TQString::number((s.chunk_size % 1024) / 100) + " KB");
else
- m_size_chunks->setText(QString::number(s.chunk_size / 1024 / 1024) + "." + QString::number(((s.chunk_size / 1024) % 1024) / 100) + " MB");
+ m_size_chunks->setText(TQString::number(s.chunk_size / 1024 / 1024) + "." + TQString::number(((s.chunk_size / 1024) % 1024) / 100) + " MB");
}
- void ChunkDownloadView::saveLayout(KConfig* cfg,const QString & group_name)
+ void ChunkDownloadView::saveLayout(KConfig* cfg,const TQString & group_name)
{
m_list_view->saveLayout(cfg,group_name);
}
- void ChunkDownloadView::restoreLayout(KConfig* cfg,const QString & group_name)
+ void ChunkDownloadView::restoreLayout(KConfig* cfg,const TQString & group_name)
{
m_list_view->restoreLayout(cfg,group_name);
}
diff --git a/plugins/infowidget/chunkdownloadview.h b/plugins/infowidget/chunkdownloadview.h
index a00a746..860052d 100644
--- a/plugins/infowidget/chunkdownloadview.h
+++ b/plugins/infowidget/chunkdownloadview.h
@@ -21,7 +21,7 @@
#define BTCHUNKDOWNLOADVIEW_H
#include <klistview.h>
-#include <qmap.h>
+#include <tqmap.h>
#include "chunkdownloadviewbase.h"
namespace kt
@@ -36,7 +36,7 @@ namespace kt
ChunkDownloadViewItem(KListView* cdv,kt::ChunkDownloadInterface* cd);
void update();
- int compare(QListViewItem * i,int col,bool) const;
+ int compare(TQListViewItem * i,int col,bool) const;
};
@@ -46,15 +46,16 @@ namespace kt
class ChunkDownloadView : public ChunkDownloadViewBase
{
Q_OBJECT
+ TQ_OBJECT
- QMap<kt::ChunkDownloadInterface*,ChunkDownloadViewItem*> items;
+ TQMap<kt::ChunkDownloadInterface*,ChunkDownloadViewItem*> items;
kt::TorrentInterface* curr_tc;
public:
- ChunkDownloadView(QWidget *parent = 0, const char *name = 0);
+ ChunkDownloadView(TQWidget *tqparent = 0, const char *name = 0);
virtual ~ChunkDownloadView();
- void saveLayout(KConfig* cfg,const QString & group_name);
- void restoreLayout(KConfig* cfg,const QString & group_name);
+ void saveLayout(KConfig* cfg,const TQString & group_name);
+ void restoreLayout(KConfig* cfg,const TQString & group_name);
void clear();
void update();
void changeTC(kt::TorrentInterface* tc);
diff --git a/plugins/infowidget/chunkdownloadviewbase.ui b/plugins/infowidget/chunkdownloadviewbase.ui
index 24a6e18..d4426b5 100644
--- a/plugins/infowidget/chunkdownloadviewbase.ui
+++ b/plugins/infowidget/chunkdownloadviewbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ChunkDownloadViewBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ChunkDownloadViewBase</cstring>
</property>
@@ -19,23 +19,23 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout8</cstring>
+ <cstring>tqlayout8</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout11</cstring>
+ <cstring>tqlayout11</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -43,11 +43,11 @@
<string>Total:</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_total_chunks</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>50</width>
<height>0</height>
@@ -59,21 +59,21 @@
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout14</cstring>
+ <cstring>tqlayout14</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel5</cstring>
</property>
@@ -81,11 +81,11 @@
<string>Currently downloading:</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_chunks_downloading</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>50</width>
<height>0</height>
@@ -97,21 +97,21 @@
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout13</cstring>
+ <cstring>tqlayout13</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -119,11 +119,11 @@
<string>Downloaded:</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_chunks_downloaded</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>50</width>
<height>0</height>
@@ -135,21 +135,21 @@
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout38</cstring>
+ <cstring>tqlayout38</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_4</cstring>
</property>
@@ -157,11 +157,11 @@
<string>Excluded:</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_excluded_chunks</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>50</width>
<height>0</height>
@@ -173,21 +173,21 @@
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout38_2</cstring>
+ <cstring>tqlayout38_2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_4_2</cstring>
</property>
@@ -195,11 +195,11 @@
<string>Left:</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_chunks_left</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>50</width>
<height>0</height>
@@ -211,21 +211,21 @@
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout24</cstring>
+ <cstring>tqlayout24</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_8</cstring>
</property>
@@ -233,11 +233,11 @@
<string>Size:</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_size_chunks</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>80</width>
<height>0</height>
@@ -249,7 +249,7 @@
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -265,7 +265,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -338,7 +338,7 @@
</widget>
<customwidgets>
</customwidgets>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klistview.h</includehint>
</includehints>
diff --git a/plugins/infowidget/downloadedchunkbar.cpp b/plugins/infowidget/downloadedchunkbar.cpp
index ab87ff7..6e6fe9a 100644
--- a/plugins/infowidget/downloadedchunkbar.cpp
+++ b/plugins/infowidget/downloadedchunkbar.cpp
@@ -24,8 +24,8 @@
namespace kt
{
- DownloadedChunkBar::DownloadedChunkBar(QWidget* parent, const char* name)
- : ChunkBar(parent,name)
+ DownloadedChunkBar::DownloadedChunkBar(TQWidget* tqparent, const char* name)
+ : ChunkBar(tqparent,name)
{
show_excluded = true;
}
diff --git a/plugins/infowidget/downloadedchunkbar.h b/plugins/infowidget/downloadedchunkbar.h
index 996634f..2b9fce1 100644
--- a/plugins/infowidget/downloadedchunkbar.h
+++ b/plugins/infowidget/downloadedchunkbar.h
@@ -30,8 +30,9 @@ namespace kt
class DownloadedChunkBar : public ChunkBar
{
Q_OBJECT
+ TQ_OBJECT
public:
- DownloadedChunkBar(QWidget* parent, const char* name);
+ DownloadedChunkBar(TQWidget* tqparent, const char* name);
virtual ~DownloadedChunkBar();
virtual const bt::BitSet & getBitSet() const;
diff --git a/plugins/infowidget/fileview.cpp b/plugins/infowidget/fileview.cpp
index 7fb56a6..9c64960 100644
--- a/plugins/infowidget/fileview.cpp
+++ b/plugins/infowidget/fileview.cpp
@@ -29,7 +29,7 @@
#include <interfaces/functions.h>
#include <interfaces/torrentinterface.h>
#include <interfaces/torrentfileinterface.h>
-#include <qfileinfo.h>
+#include <tqfileinfo.h>
#include "functions.h"
#include "iwfiletreeitem.h"
#include "iwfiletreediritem.h"
@@ -40,10 +40,10 @@ using namespace bt;
namespace kt
{
- FileView::FileView(QWidget *parent, const char *name)
- : KListView(parent, name),curr_tc(0),multi_root(0),pending_fill(0),next_fill_item(0)
+ FileView::FileView(TQWidget *tqparent, const char *name)
+ : KListView(tqparent, name),curr_tc(0),multi_root(0),pending_fill(0),next_fill_item(0)
{
- setFrameShape(QFrame::NoFrame);
+ setFrameShape(TQFrame::NoFrame);
addColumn( i18n( "File" ) );
addColumn( i18n( "Size" ) );
addColumn( i18n( "Download" ) );
@@ -69,17 +69,17 @@ namespace kt
context_menu->setItemEnabled(dnd_keep_id, false);
context_menu->setItemEnabled(dnd_throw_away_id, false);
- connect(this,SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint& )),
- this,SLOT(showContextMenu(KListView*, QListViewItem*, const QPoint& )));
- connect(context_menu, SIGNAL ( activated ( int ) ), this, SLOT ( contextItem ( int ) ) );
- connect(this,SIGNAL(doubleClicked( QListViewItem*, const QPoint&, int )),
- this,SLOT(onDoubleClicked(QListViewItem*, const QPoint&, int)));
+ connect(this,TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint& )),
+ this,TQT_SLOT(showContextMenu(KListView*, TQListViewItem*, const TQPoint& )));
+ connect(context_menu, TQT_SIGNAL ( activated ( int ) ), this, TQT_SLOT ( contextItem ( int ) ) );
+ connect(this,TQT_SIGNAL(doubleClicked( TQListViewItem*, const TQPoint&, int )),
+ this,TQT_SLOT(onDoubleClicked(TQListViewItem*, const TQPoint&, int)));
- connect(&fill_timer, SIGNAL(timeout()), this, SLOT( fillTreePartial() ) );
+ connect(&fill_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT( fillTreePartial() ) );
setEnabled(false);
- setSelectionMode(QListView::Extended);
+ setSelectionMode(TQListView::Extended);
}
@@ -108,8 +108,8 @@ namespace kt
multi_root->updatePercentageInformation();
multi_root->updatePreviewInformation(curr_tc);
fill_timer.stop();
- connect(curr_tc,SIGNAL(missingFilesMarkedDND( kt::TorrentInterface* )),
- this,SLOT(refreshFileTree( kt::TorrentInterface* )));
+ connect(curr_tc,TQT_SIGNAL(missingFilesMarkedDND( kt::TorrentInterface* )),
+ this,TQT_SLOT(refreshFileTree( kt::TorrentInterface* )));
}
else
fill_timer.start(0,true);
@@ -141,8 +141,8 @@ namespace kt
item->setPixmap(0,KMimeType::findByPath(s.torrent_name)->pixmap(KIcon::Small));
setEnabled(true);
- connect(curr_tc,SIGNAL(missingFilesMarkedDND( kt::TorrentInterface* )),
- this,SLOT(refreshFileTree( kt::TorrentInterface* )));
+ connect(curr_tc,TQT_SIGNAL(missingFilesMarkedDND( kt::TorrentInterface* )),
+ this,TQT_SLOT(refreshFileTree( kt::TorrentInterface* )));
}
}
@@ -173,7 +173,7 @@ namespace kt
{
if (curr_tc && !curr_tc->getStats().multi_file_torrent)
{
- QListViewItemIterator it(this);
+ TQListViewItemIterator it(this);
if (!it.current())
return;
@@ -186,7 +186,7 @@ namespace kt
else if (percent > 100.0)
percent = 100.0;
KLocale* loc = KGlobal::locale();
- it.current()->setText(4,i18n("%1 %").arg(loc->formatNumber(percent,2)));
+ it.current()->setText(4,i18n("%1 %").tqarg(loc->formatNumber(percent,2)));
}
}
@@ -194,7 +194,7 @@ namespace kt
{
if (curr_tc && !curr_tc->getStats().multi_file_torrent)
{
- QListViewItemIterator it(this);
+ TQListViewItemIterator it(this);
if (!it.current())
return;
@@ -211,14 +211,14 @@ namespace kt
}
}
- void FileView::showContextMenu(KListView* ,QListViewItem*,const QPoint & p)
+ void FileView::showContextMenu(KListView* ,TQListViewItem*,const TQPoint & p)
{
const TorrentStats & s = curr_tc->getStats();
// don't show a menu if item is 0 or if it is a directory
- QPtrList<QListViewItem> sel = selectedItems();
+ TQPtrList<TQListViewItem> sel = selectedItems();
switch(sel.count())
{
case 0:
@@ -237,7 +237,7 @@ namespace kt
return;
break;
}
- QListViewItem* item = sel.getFirst();
+ TQListViewItem* item = sel.getFirst();
context_menu->setItemEnabled(first_id, false);
context_menu->setItemEnabled(normal_id, false);
@@ -321,7 +321,7 @@ namespace kt
void FileView::contextItem(int id)
{
- QPtrList<QListViewItem> sel = selectedItems();
+ TQPtrList<TQListViewItem> sel = selectedItems();
Priority newpriority = NORMAL_PRIORITY;
if(id == this->preview_id)
@@ -338,7 +338,7 @@ namespace kt
n = (*sel.begin())->childCount() == 0 ? 1 : 666;
}
- QString msg = i18n(
+ TQString msg = i18n(
"You will lose all data in this file, are you sure you want to do this ?",
"You will lose all data in these files, are you sure you want to do this ?",n);
@@ -365,17 +365,17 @@ namespace kt
- QPtrList<QListViewItem>::Iterator i = sel.begin();
+ TQPtrList<TQListViewItem>::Iterator i = sel.begin();
while(i != sel.end())
{
- QListViewItem* item = *i;
+ TQListViewItem* item = *i;
changePriority(item, newpriority);
multi_root->updatePriorityInformation(curr_tc);
i++;
}
}
- void FileView::changePriority(QListViewItem* item, Priority newpriority)
+ void FileView::changePriority(TQListViewItem* item, Priority newpriority)
{
if(item->childCount() == 0)
{
@@ -396,7 +396,7 @@ namespace kt
}
return;
}
- QListViewItem* myChild = item->firstChild();
+ TQListViewItem* myChild = item->firstChild();
while( myChild )
{
changePriority(myChild, newpriority);
@@ -413,7 +413,7 @@ namespace kt
multi_root->updateDNDInformation();
}
- void FileView::onDoubleClicked(QListViewItem* item,const QPoint & ,int )
+ void FileView::onDoubleClicked(TQListViewItem* item,const TQPoint & ,int )
{
if (!curr_tc)
return;
@@ -426,7 +426,7 @@ namespace kt
{
// file
FileTreeItem* file = (FileTreeItem*)item;
- QString path = "cache" + bt::DirSeparator() + file->getTorrentFile().getPath();
+ TQString path = "cache" + bt::DirSeparator() + file->getTorrentFile().getPath();
new KRun(KURL::fromPathOrURL(curr_tc->getTorDir() + path), 0, true, true);
}
else
@@ -438,7 +438,7 @@ namespace kt
}
else
{
- QFileInfo fi(curr_tc->getTorDir()+"cache");
+ TQFileInfo fi(curr_tc->getTorDir()+"cache");
new KRun(KURL::fromPathOrURL(fi.readLink()), 0, true, true);
}
}
diff --git a/plugins/infowidget/fileview.h b/plugins/infowidget/fileview.h
index 6a827dc..0e06eba 100644
--- a/plugins/infowidget/fileview.h
+++ b/plugins/infowidget/fileview.h
@@ -22,7 +22,7 @@
#include <klistview.h>
#include <util/constants.h>
-#include <qtimer.h>
+#include <tqtimer.h>
namespace kt
{
@@ -35,32 +35,33 @@ namespace kt
class FileView : public KListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- FileView(QWidget *parent = 0, const char *name = 0);
+ FileView(TQWidget *tqparent = 0, const char *name = 0);
virtual ~FileView();
void update();
void changeTC(kt::TorrentInterface* tc);
private slots:
void contextItem(int id);
- void showContextMenu(KListView* ,QListViewItem* item,const QPoint & p);
+ void showContextMenu(KListView* ,TQListViewItem* item,const TQPoint & p);
void refreshFileTree(kt::TorrentInterface* tc);
- void onDoubleClicked(QListViewItem* item,const QPoint & ,int );
+ void onDoubleClicked(TQListViewItem* item,const TQPoint & ,int );
void fillTreePartial();
private:
void fillFileTree();
void readyPreview();
void readyPercentage();
- void changePriority(QListViewItem* item, bt::Priority newpriority);
+ void changePriority(TQListViewItem* item, bt::Priority newpriority);
private:
kt::TorrentInterface* curr_tc;
IWFileTreeDirItem* multi_root;
bool pending_fill;
KPopupMenu* context_menu;
- QString preview_path;
- QTimer fill_timer;
+ TQString preview_path;
+ TQTimer fill_timer;
int preview_id;
int first_id;
int normal_id;
diff --git a/plugins/infowidget/flagdb.cpp b/plugins/infowidget/flagdb.cpp
index 140a3b7..ceea6fc 100644
--- a/plugins/infowidget/flagdb.cpp
+++ b/plugins/infowidget/flagdb.cpp
@@ -17,17 +17,17 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <qfile.h>
-#include <qimage.h>
+#include <tqfile.h>
+#include <tqimage.h>
#include <kstandarddirs.h>
#include "flagdb.h"
-kt::FlagDBSource::FlagDBSource(const char* type, const QString& pathPattern)
+kt::FlagDBSource::FlagDBSource(const char* type, const TQString& pathPattern)
: type(type), pathPattern(pathPattern)
{
}
-kt::FlagDBSource::FlagDBSource(const QString& pathPattern)
+kt::FlagDBSource::FlagDBSource(const TQString& pathPattern)
: type(NULL), pathPattern(pathPattern)
{
}
@@ -37,16 +37,16 @@ kt::FlagDBSource::FlagDBSource()
{
}
-QString kt::FlagDBSource::FlagDBSource::getPath(const QString& country) const
+TQString kt::FlagDBSource::FlagDBSource::getPath(const TQString& country) const
{
if (type) {
- return locate(type, pathPattern.arg(country));
+ return locate(type, pathPattern.tqarg(country));
} else {
- return pathPattern.arg(country);
+ return pathPattern.tqarg(country);
}
}
-const QPixmap& kt::FlagDB::nullPixmap = QPixmap();
+const TQPixmap& kt::FlagDB::nullPixmap = TQPixmap();
kt::FlagDB::FlagDB(int preferredWidth, int preferredHeight)
: preferredWidth(preferredWidth),
@@ -74,33 +74,33 @@ void kt::FlagDB::addFlagSource(const FlagDBSource& source)
sources.append(source);
}
-void kt::FlagDB::addFlagSource(const char* type, const QString& pathPattern)
+void kt::FlagDB::addFlagSource(const char* type, const TQString& pathPattern)
{
addFlagSource(FlagDBSource(type, pathPattern));
}
-const QValueList<kt::FlagDBSource>& kt::FlagDB::listSources() const
+const TQValueList<kt::FlagDBSource>& kt::FlagDB::listSources() const
{
return sources;
}
-bool kt::FlagDB::isFlagAvailable(const QString& country)
+bool kt::FlagDB::isFlagAvailable(const TQString& country)
{
return getFlag(country).isNull();
}
-const QPixmap& kt::FlagDB::getFlag(const QString& country)
+const TQPixmap& kt::FlagDB::getFlag(const TQString& country)
{
- const QString& c = country.lower();
- if (!db.contains(c)) {
- QImage img;
- QPixmap pixmap;
- for (QValueList<FlagDBSource>::const_iterator it = sources.constBegin(); it != sources.constEnd(); it++) {
- const QString& path = (*it).getPath(c);
- if (QFile::exists(path)) {
+ const TQString& c = country.lower();
+ if (!db.tqcontains(c)) {
+ TQImage img;
+ TQPixmap pixmap;
+ for (TQValueList<FlagDBSource>::const_iterator it = sources.constBegin(); it != sources.constEnd(); it++) {
+ const TQString& path = (*it).getPath(c);
+ if (TQFile::exists(path)) {
if (img.load(path)) {
if (img.width() != preferredWidth || img.height() != preferredHeight) {
- const QImage& imgScaled = img.smoothScale(preferredWidth, preferredHeight, QImage::ScaleMin);
+ const TQImage& imgScaled = img.smoothScale(preferredWidth, preferredHeight, TQ_ScaleMin);
if (!imgScaled.isNull()) {
pixmap.convertFromImage(imgScaled);
break;
diff --git a/plugins/infowidget/flagdb.h b/plugins/infowidget/flagdb.h
index f2524ab..9002671 100644
--- a/plugins/infowidget/flagdb.h
+++ b/plugins/infowidget/flagdb.h
@@ -19,10 +19,10 @@
#ifndef FLAGDB_H
#define FLAGDB_H
-#include <qpixmap.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qmap.h>
+#include <tqpixmap.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
namespace kt
{
@@ -30,16 +30,16 @@ namespace kt
{
public:
FlagDBSource();
- FlagDBSource(const char* type, const QString& pathPattern);
- FlagDBSource(const QString& pathPattern);
- QString getPath(const QString& country) const;
+ FlagDBSource(const char* type, const TQString& pathPattern);
+ FlagDBSource(const TQString& pathPattern);
+ TQString getPath(const TQString& country) const;
const char* getType() { return type; };
- const QString& getPathPattern() { return pathPattern; };
+ const TQString& getPathPattern() { return pathPattern; };
private:
const char* type;
- const QString pathPattern;
+ const TQString pathPattern;
};
/**
@@ -53,15 +53,15 @@ namespace kt
~FlagDB();
void addFlagSource(const FlagDBSource& source);
- void addFlagSource(const char* type, const QString& pathPattern);
- const QValueList<FlagDBSource>& listSources() const;
- bool isFlagAvailable(const QString& country);
- const QPixmap& getFlag(const QString& country);
+ void addFlagSource(const char* type, const TQString& pathPattern);
+ const TQValueList<FlagDBSource>& listSources() const;
+ bool isFlagAvailable(const TQString& country);
+ const TQPixmap& getFlag(const TQString& country);
private:
- static const QPixmap& nullPixmap;
+ static const TQPixmap& nullPixmap;
int preferredWidth, preferredHeight;
- QValueList<FlagDBSource> sources;
- QMap<QString,QPixmap> db;
+ TQValueList<FlagDBSource> sources;
+ TQMap<TQString,TQPixmap> db;
};
}
diff --git a/plugins/infowidget/floatspinbox.cpp b/plugins/infowidget/floatspinbox.cpp
index 8b78981..d498d7d 100644
--- a/plugins/infowidget/floatspinbox.cpp
+++ b/plugins/infowidget/floatspinbox.cpp
@@ -22,16 +22,16 @@
#include <kglobal.h>
#include <klocale.h>
-#include <qlineedit.h>
+#include <tqlineedit.h>
#include "floatspinbox.h"
#include "localefloatvalidator.h"
kt::FloatSpinBox::FloatSpinBox(
- QWidget * parent,
+ TQWidget * tqparent,
const char * name
)
- :QSpinBox( -100, 100, 1, parent, name),
+ :TQSpinBox( -100, 100, 1, tqparent, name),
m_precision_digits( 2 ),
m_value(0.0f),
m_minValue(0.0f),
@@ -39,19 +39,19 @@ kt::FloatSpinBox::FloatSpinBox(
m_useRange(false),
m_oldIntVal(0)
{
- QSpinBox::setValue(0);
+ TQSpinBox::setValue(0);
setStep( 0.25f );
- connect(this, SIGNAL(valueChanged ( int )), this, SLOT(internalValueChanged( int )));
- setValidator( new LocaleFloatValidator( dynamic_cast<QSpinBox * > (this) ));
- editor()->setAlignment(Qt::AlignRight);
+ connect(this, TQT_SIGNAL(valueChanged ( int )), this, TQT_SLOT(internalValueChanged( int )));
+ setValidator( new LocaleFloatValidator( TQT_TQOBJECT(dynamic_cast<TQSpinBox * > (this)) ));
+ editor()->tqsetAlignment(TQt::AlignRight);
}
kt::FloatSpinBox::FloatSpinBox(
int precision,
- QWidget * parent,
+ TQWidget * tqparent,
const char * name
)
- :QSpinBox( -100, 100, 1, parent, name),
+ :TQSpinBox( -100, 100, 1, tqparent, name),
m_precision_digits( precision ),
m_value(0.0f),
m_minValue(0.0f),
@@ -59,10 +59,10 @@ kt::FloatSpinBox::FloatSpinBox(
m_useRange(false),
m_oldIntVal(0)
{
- QSpinBox::setValue(0);
+ TQSpinBox::setValue(0);
setStep( 0.25 );
- connect(this, SIGNAL(valueChanged ( int )), this, SLOT(internalValueChanged( int )));
- setValidator( new LocaleFloatValidator( dynamic_cast<QSpinBox * > (this) ));
+ connect(this, TQT_SIGNAL(valueChanged ( int )), this, TQT_SLOT(internalValueChanged( int )));
+ setValidator( new LocaleFloatValidator( TQT_TQOBJECT(dynamic_cast<TQSpinBox * > (this)) ));
}
@@ -71,10 +71,10 @@ kt::FloatSpinBox::FloatSpinBox(
float maxValue,
float step,
int precision,
- QWidget * parent,
+ TQWidget * tqparent,
const char * name
)
- :QSpinBox( -100, 100, 1, parent, name),
+ :TQSpinBox( -100, 100, 1, tqparent, name),
m_precision_digits( precision ),
m_value(0.0f),
m_minValue(minValue),
@@ -82,27 +82,27 @@ kt::FloatSpinBox::FloatSpinBox(
m_useRange(true),
m_oldIntVal(0)
{
- QSpinBox::setValue(0);
+ TQSpinBox::setValue(0);
setValue(0.0f);
setStep( step );
- connect(this, SIGNAL(valueChanged ( int )), this, SLOT(internalValueChanged( int )));
- setValidator( new LocaleFloatValidator( this ));
+ connect(this, TQT_SIGNAL(valueChanged ( int )), this, TQT_SLOT(internalValueChanged( int )));
+ setValidator( new LocaleFloatValidator( TQT_TQOBJECT(this) ));
}
-QString kt::FloatSpinBox::mapValueToText( int value )
+TQString kt::FloatSpinBox::mapValueToText( int value )
{
- /// This is called from QSpinBox, which passes an int.
- /// As we don't use the QSpinBox's internal value, we ignore it.
- QString t = KGlobal::locale()->formatNumber( m_value, m_precision_digits);
+ /// This is called from TQSpinBox, which passes an int.
+ /// As we don't use the TQSpinBox's internal value, we ignore it.
+ TQString t = KGlobal::locale()->formatNumber( m_value, m_precision_digits);
editor()->setText(t);
return t;
}
int kt::FloatSpinBox::mapTextToValue( bool * ok )
{
- /// This is called from QSpinBox, which needs an int for return.
- /// As we don't use the QSpinBox's internal value, we only return 0.
+ /// This is called from TQSpinBox, which needs an int for return.
+ /// As we don't use the TQSpinBox's internal value, we only return 0.
float value = KGlobal::locale()->readNumber(text(), ok);
if (*ok)
@@ -183,7 +183,7 @@ void kt::FloatSpinBox::setStep( float step)
void kt::FloatSpinBox::internalValueChanged( int value )
{
/// The step buttons won't work without tracking the
- /// QSpinbox's value changes.
+ /// TQSpinbox's value changes.
if ( value > m_oldIntVal)
{
diff --git a/plugins/infowidget/floatspinbox.h b/plugins/infowidget/floatspinbox.h
index 42545bc..8aa4dc8 100644
--- a/plugins/infowidget/floatspinbox.h
+++ b/plugins/infowidget/floatspinbox.h
@@ -22,7 +22,7 @@
#ifndef FLOATSPINBOX_H
#define FLOATSPINBOX_H
-#include <qspinbox.h>
+#include <tqspinbox.h>
namespace kt
{
@@ -31,21 +31,22 @@ namespace kt
* @author Jonas Widarsson
*
* A Spinbox for float values which respects KGlobal::locale().
- * QSpinBox's internal integer value is only
+ * TQSpinBox's internal integer value is only
* used for step detection.
*/
- class FloatSpinBox : public QSpinBox
+ class FloatSpinBox : public TQSpinBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- FloatSpinBox( QWidget* parent=0, const char* name=0 );
- FloatSpinBox( int precision = 2, QWidget* parent=0, const char* name=0 );
+ FloatSpinBox( TQWidget* tqparent=0, const char* name=0 );
+ FloatSpinBox( int precision = 2, TQWidget* tqparent=0, const char* name=0 );
FloatSpinBox( float minValue, float maxValue, float step = 0.5, int precision = 2,
- QWidget* parent=0, const char* name=0 );
+ TQWidget* tqparent=0, const char* name=0 );
virtual ~FloatSpinBox();
- QString mapValueToText( int value );
+ TQString mapValueToText( int value );
int mapTextToValue( bool *ok );
diff --git a/plugins/infowidget/infowidgetplugin.cpp b/plugins/infowidget/infowidgetplugin.cpp
index 4957c48..cbd30ef 100644
--- a/plugins/infowidget/infowidgetplugin.cpp
+++ b/plugins/infowidget/infowidgetplugin.cpp
@@ -17,7 +17,7 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <qscrollview.h>
+#include <tqscrollview.h>
#include <kgenericfactory.h>
#include <kglobal.h>
#include <klocale.h>
@@ -47,8 +47,8 @@ namespace kt
{
- InfoWidgetPlugin::InfoWidgetPlugin(QObject* parent, const char* name, const QStringList& args)
- : Plugin(parent, name, args,NAME,i18n("Info Widget"),AUTHOR,EMAIL,
+ InfoWidgetPlugin::InfoWidgetPlugin(TQObject* tqparent, const char* name, const TQStringList& args)
+ : Plugin(tqparent, name, args,NAME,i18n("Info Widget"),AUTHOR,EMAIL,
i18n("Shows additional information about a download. Like which chunks have been downloaded, how many seeders and leechers ..."),
"ktinfowidget")
{
@@ -73,7 +73,7 @@ namespace kt
pref = new InfoWidgetPrefPage(this);
getGUI()->addViewListener(this);
- getGUI()->addToolWidget(status_tab,"info",i18n("Status"),GUIInterface::DOCK_BOTTOM);
+ getGUI()->addToolWidget(status_tab,"info",i18n("tqStatus"),GUIInterface::DOCK_BOTTOM);
getGUI()->addToolWidget(file_view,"folder",i18n("Files"),GUIInterface::DOCK_BOTTOM);
showPeerView( InfoWidgetPluginSettings::showPeerView() );
@@ -157,7 +157,7 @@ namespace kt
createMonitor(tc);
}
- bool InfoWidgetPlugin::versionCheck(const QString & version) const
+ bool InfoWidgetPlugin::versionCheck(const TQString & version) const
{
return version == KT_VERSION_MACRO;
}
@@ -216,8 +216,8 @@ namespace kt
tracker_view->changeTC(const_cast<kt::TorrentInterface*>(getGUI()->getCurrentTorrent()));
// seeing that a merge of the trackers might happen after a torrent has been loaded
// we need to update the tracker_view
- connect(getCore(),SIGNAL(loadingFinished(const KURL&, bool, bool)),
- tracker_view,SLOT(onLoadingFinished(const KURL&, bool, bool)));
+ connect(getCore(),TQT_SIGNAL(loadingFinished(const KURL&, bool, bool)),
+ tracker_view,TQT_SLOT(onLoadingFinished(const KURL&, bool, bool)));
}
else if (!show && tracker_view)
{
diff --git a/plugins/infowidget/infowidgetplugin.h b/plugins/infowidget/infowidgetplugin.h
index 9e08e75..cb6702c 100644
--- a/plugins/infowidget/infowidgetplugin.h
+++ b/plugins/infowidget/infowidgetplugin.h
@@ -42,15 +42,16 @@ namespace kt
class InfoWidgetPlugin : public Plugin,public ViewListener
{
Q_OBJECT
+ TQ_OBJECT
public:
- InfoWidgetPlugin(QObject* parent, const char* name, const QStringList& args);
+ InfoWidgetPlugin(TQObject* tqparent, const char* name, const TQStringList& args);
virtual ~InfoWidgetPlugin();
virtual void load();
virtual void unload();
virtual void guiUpdate();
virtual void currentTorrentChanged(TorrentInterface* tc);
- virtual bool versionCheck(const QString & version) const;
+ virtual bool versionCheck(const TQString & version) const;
///Show PeerView in main window
void showPeerView(bool show);
diff --git a/plugins/infowidget/infowidgetprefpage.cpp b/plugins/infowidget/infowidgetprefpage.cpp
index 16e1384..2fa7f4e 100644
--- a/plugins/infowidget/infowidgetprefpage.cpp
+++ b/plugins/infowidget/infowidgetprefpage.cpp
@@ -18,7 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include <klocale.h>
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include <kglobal.h>
#include <kiconloader.h>
#include "infowidgetplugin.h"
@@ -53,9 +53,9 @@ namespace kt
return true;
}
- void InfoWidgetPrefPage::createWidget(QWidget* parent)
+ void InfoWidgetPrefPage::createWidget(TQWidget* tqparent)
{
- pref = new IWPref(parent);
+ pref = new IWPref(tqparent);
updateData();
}
diff --git a/plugins/infowidget/infowidgetprefpage.h b/plugins/infowidget/infowidgetprefpage.h
index a1fa40f..89ab56b 100644
--- a/plugins/infowidget/infowidgetprefpage.h
+++ b/plugins/infowidget/infowidgetprefpage.h
@@ -41,7 +41,7 @@ namespace kt
virtual ~InfoWidgetPrefPage();
virtual bool apply();
- virtual void createWidget(QWidget* parent);
+ virtual void createWidget(TQWidget* tqparent);
virtual void deleteWidget();
virtual void updateData();
diff --git a/plugins/infowidget/iwfiletreediritem.cpp b/plugins/infowidget/iwfiletreediritem.cpp
index 1ddf899..c1eee32 100644
--- a/plugins/infowidget/iwfiletreediritem.cpp
+++ b/plugins/infowidget/iwfiletreediritem.cpp
@@ -33,13 +33,13 @@ using namespace kt;
namespace kt
{
- IWFileTreeDirItem::IWFileTreeDirItem(KListView* klv,const QString & name)
+ IWFileTreeDirItem::IWFileTreeDirItem(KListView* klv,const TQString & name)
: kt::FileTreeDirItem(klv,name)
{
}
- IWFileTreeDirItem::IWFileTreeDirItem(IWFileTreeDirItem* parent,const QString & name)
- : kt::FileTreeDirItem(parent,name)
+ IWFileTreeDirItem::IWFileTreeDirItem(IWFileTreeDirItem* tqparent,const TQString & name)
+ : kt::FileTreeDirItem(tqparent,name)
{
}
@@ -51,8 +51,8 @@ namespace kt
void IWFileTreeDirItem::updatePercentageInformation()
{
// first set all the child items
- bt::PtrMap<QString,FileTreeItem>::iterator i = children.begin();
- while (i != children.end())
+ bt::PtrMap<TQString,FileTreeItem>::iterator i = tqchildren.begin();
+ while (i != tqchildren.end())
{
IWFileTreeItem* item = (IWFileTreeItem*)i->second;
item->updatePercentageInformation();
@@ -60,7 +60,7 @@ namespace kt
}
// then recursivly move on to subdirs
- bt::PtrMap<QString,FileTreeDirItem>::iterator j = subdirs.begin();
+ bt::PtrMap<TQString,FileTreeDirItem>::iterator j = subdirs.begin();
while (j != subdirs.end())
{
((IWFileTreeDirItem*)j->second)->updatePercentageInformation();
@@ -71,8 +71,8 @@ namespace kt
void IWFileTreeDirItem::updatePreviewInformation(kt::TorrentInterface* tc)
{
// first set all the child items
- bt::PtrMap<QString,FileTreeItem>::iterator i = children.begin();
- while (i != children.end())
+ bt::PtrMap<TQString,FileTreeItem>::iterator i = tqchildren.begin();
+ while (i != tqchildren.end())
{
IWFileTreeItem* item = (IWFileTreeItem*)i->second;
item->updatePreviewInformation(tc);
@@ -80,7 +80,7 @@ namespace kt
}
// then recursivly move on to subdirs
- bt::PtrMap<QString,FileTreeDirItem>::iterator j = subdirs.begin();
+ bt::PtrMap<TQString,FileTreeDirItem>::iterator j = subdirs.begin();
while (j != subdirs.end())
{
((IWFileTreeDirItem*)j->second)->updatePreviewInformation(tc);
@@ -91,11 +91,11 @@ namespace kt
Priority IWFileTreeDirItem::updatePriorityInformation(kt::TorrentInterface* tc)
{
// first set all the child items
- bt::PtrMap<QString,FileTreeItem>::iterator i = children.begin();
+ bt::PtrMap<TQString,FileTreeItem>::iterator i = tqchildren.begin();
bool setpriority = false;
bool oneexcluded = false;
Priority priority = PREVIEW_PRIORITY;
- if(i != children.end())
+ if(i != tqchildren.end())
{
IWFileTreeItem* item = (IWFileTreeItem*)i->second;
item->updatePriorityInformation(tc);
@@ -105,7 +105,7 @@ namespace kt
oneexcluded = true;
setpriority = true;
}
- while (i != children.end())
+ while (i != tqchildren.end())
{
IWFileTreeItem* item = (IWFileTreeItem*)i->second;
item->updatePriorityInformation(tc);
@@ -117,8 +117,8 @@ namespace kt
}
// then recursivly move on to subdirs
- bt::PtrMap<QString,FileTreeDirItem>::iterator j = subdirs.begin();
- if(j != subdirs.end() && children.begin() == children.end())
+ bt::PtrMap<TQString,FileTreeDirItem>::iterator j = subdirs.begin();
+ if(j != subdirs.end() && tqchildren.begin() == tqchildren.end())
{
Priority priority =
((IWFileTreeDirItem*)j->second)->updatePriorityInformation(tc);
@@ -176,12 +176,12 @@ namespace kt
return PREVIEW_PRIORITY;
}
- FileTreeItem* IWFileTreeDirItem::newFileTreeItem(const QString & name,TorrentFileInterface & file)
+ FileTreeItem* IWFileTreeDirItem::newFileTreeItem(const TQString & name,TorrentFileInterface & file)
{
return new IWFileTreeItem(this,name,file);
}
- FileTreeDirItem* IWFileTreeDirItem::newFileTreeDirItem(const QString & subdir)
+ FileTreeDirItem* IWFileTreeDirItem::newFileTreeDirItem(const TQString & subdir)
{
return new IWFileTreeDirItem(this,subdir);
}
@@ -189,8 +189,8 @@ namespace kt
void IWFileTreeDirItem::updateDNDInformation()
{
// first set all the child items
- bt::PtrMap<QString,FileTreeItem>::iterator i = children.begin();
- while (i != children.end())
+ bt::PtrMap<TQString,FileTreeItem>::iterator i = tqchildren.begin();
+ while (i != tqchildren.end())
{
IWFileTreeItem* item = (IWFileTreeItem*)i->second;
item->updateDNDInformation();
@@ -198,7 +198,7 @@ namespace kt
}
// then recursivly move on to subdirs
- bt::PtrMap<QString,FileTreeDirItem>::iterator j = subdirs.begin();
+ bt::PtrMap<TQString,FileTreeDirItem>::iterator j = subdirs.begin();
while (j != subdirs.end())
{
((IWFileTreeDirItem*)j->second)->updateDNDInformation();
@@ -209,8 +209,8 @@ namespace kt
bt::ConfirmationResult IWFileTreeDirItem::confirmationDialog()
{
return bt::KEEP_DATA;
-/* QString msg = i18n("Do you want to keep the existing data for seeding ?");
- int ret = KMessageBox::warningYesNoCancel(0,msg,QString::null,
+/* TQString msg = i18n("Do you want to keep the existing data for seeding ?");
+ int ret = KMessageBox::warningYesNoCancel(0,msg,TQString(),
KGuiItem(i18n("Keep the data")),
KGuiItem(i18n("Delete the data")));
if (ret == KMessageBox::Yes)
diff --git a/plugins/infowidget/iwfiletreediritem.h b/plugins/infowidget/iwfiletreediritem.h
index 90aa7ea..3c26031 100644
--- a/plugins/infowidget/iwfiletreediritem.h
+++ b/plugins/infowidget/iwfiletreediritem.h
@@ -49,8 +49,8 @@ namespace kt
class IWFileTreeDirItem : public kt::FileTreeDirItem
{
public:
- IWFileTreeDirItem(KListView* klv,const QString & name);
- IWFileTreeDirItem(IWFileTreeDirItem* parent,const QString & name);
+ IWFileTreeDirItem(KListView* klv,const TQString & name);
+ IWFileTreeDirItem(IWFileTreeDirItem* tqparent,const TQString & name);
virtual ~IWFileTreeDirItem();
/**
@@ -71,8 +71,8 @@ namespace kt
*/
void updateDNDInformation();
- virtual kt::FileTreeItem* newFileTreeItem(const QString & name, kt::TorrentFileInterface & file);
- virtual kt::FileTreeDirItem* newFileTreeDirItem(const QString & subdir);
+ virtual kt::FileTreeItem* newFileTreeItem(const TQString & name, kt::TorrentFileInterface & file);
+ virtual kt::FileTreeDirItem* newFileTreeDirItem(const TQString & subdir);
virtual bt::ConfirmationResult confirmationDialog();
};
}
diff --git a/plugins/infowidget/iwfiletreeitem.cpp b/plugins/infowidget/iwfiletreeitem.cpp
index e6281df..fbfdb4b 100644
--- a/plugins/infowidget/iwfiletreeitem.cpp
+++ b/plugins/infowidget/iwfiletreeitem.cpp
@@ -33,19 +33,19 @@ using namespace kt;
namespace kt
{
- IWFileTreeItem::IWFileTreeItem(IWFileTreeDirItem* item,const QString & name,kt::TorrentFileInterface & file)
+ IWFileTreeItem::IWFileTreeItem(IWFileTreeDirItem* item,const TQString & name,kt::TorrentFileInterface & file)
: FileTreeItem(item,name,file)
{
perc_complete = 0.0;
- connect(&file,SIGNAL(downloadPercentageChanged( float )),this,SLOT(onPercentageUpdated( float )));
- connect(&file,SIGNAL(previewAvailable( bool )),this,SLOT(onPreviewAvailable( bool )));
+ connect(&file,TQT_SIGNAL(downloadPercentageChanged( float )),this,TQT_SLOT(onPercentageUpdated( float )));
+ connect(&file,TQT_SIGNAL(previewAvailable( bool )),this,TQT_SLOT(onPreviewAvailable( bool )));
}
IWFileTreeItem::~IWFileTreeItem()
{
}
- int IWFileTreeItem::compare(QListViewItem* i, int col, bool ascending) const
+ int IWFileTreeItem::compare(TQListViewItem* i, int col, bool ascending) const
{
if (col == 4)
{
@@ -92,7 +92,7 @@ namespace kt
else if (percent > 100.0)
percent = 100.0;
KLocale* loc = KGlobal::locale();
- setText(4,i18n("%1 %").arg(loc->formatNumber(percent,2)));
+ setText(4,i18n("%1 %").tqarg(loc->formatNumber(percent,2)));
perc_complete = percent;
}
@@ -147,8 +147,8 @@ namespace kt
{
return bt::KEEP_DATA;
/*
- QString msg = i18n("Do you want to keep the existing data for seeding ?");
- int ret = KMessageBox::warningYesNoCancel(0,msg,QString::null,
+ TQString msg = i18n("Do you want to keep the existing data for seeding ?");
+ int ret = KMessageBox::warningYesNoCancel(0,msg,TQString(),
KGuiItem(i18n("Keep the data")),
KGuiItem(i18n("Delete the data")));
if (ret == KMessageBox::Yes)
diff --git a/plugins/infowidget/iwfiletreeitem.h b/plugins/infowidget/iwfiletreeitem.h
index 7877ff1..4810f92 100644
--- a/plugins/infowidget/iwfiletreeitem.h
+++ b/plugins/infowidget/iwfiletreeitem.h
@@ -20,7 +20,7 @@
#ifndef IWFILETREEITEM_H
#define IWFILETREEITEM_H
-#include <qobject.h>
+#include <tqobject.h>
#include <interfaces/filetreeitem.h>
using namespace bt;
@@ -36,13 +36,14 @@ namespace kt
*
* File item in the InfoWidget's file view.
*/
- class IWFileTreeItem : public QObject, public kt::FileTreeItem
+ class IWFileTreeItem : public TQObject, public kt::FileTreeItem
{
Q_OBJECT
+ TQ_OBJECT
double perc_complete;
public:
- IWFileTreeItem(IWFileTreeDirItem* item,const QString & name,kt::TorrentFileInterface & file);
+ IWFileTreeItem(IWFileTreeDirItem* item,const TQString & name,kt::TorrentFileInterface & file);
virtual ~IWFileTreeItem();
void updatePreviewInformation(kt::TorrentInterface* tc);
@@ -50,7 +51,7 @@ namespace kt
void updatePriorityInformation(kt::TorrentInterface* tc);
void updateDNDInformation();
protected:
- virtual int compare(QListViewItem* i, int col, bool ascending) const;
+ virtual int compare(TQListViewItem* i, int col, bool ascending) const;
virtual bt::ConfirmationResult confirmationDialog();
protected slots:
diff --git a/plugins/infowidget/iwpref.ui b/plugins/infowidget/iwpref.ui
index 1007259..3973143 100644
--- a/plugins/infowidget/iwpref.ui
+++ b/plugins/infowidget/iwpref.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>IWPref</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>IWPref</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="0" column="0">
+ <widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>m_show_pv</cstring>
</property>
@@ -27,7 +27,7 @@
<string></string>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="0">
+ <widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>m_show_cdv</cstring>
</property>
@@ -45,14 +45,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>21</height>
</size>
</property>
</spacer>
- <widget class="QCheckBox" row="2" column="0">
+ <widget class="TQCheckBox" row="2" column="0">
<property name="name">
<cstring>m_show_tv</cstring>
</property>
@@ -65,5 +65,5 @@
</widget>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/plugins/infowidget/localefloatvalidator.cpp b/plugins/infowidget/localefloatvalidator.cpp
index 7faafed..f0c20ae 100644
--- a/plugins/infowidget/localefloatvalidator.cpp
+++ b/plugins/infowidget/localefloatvalidator.cpp
@@ -23,16 +23,16 @@
#include <klocale.h>
#include "localefloatvalidator.h"
-kt::LocaleFloatValidator::LocaleFloatValidator( QObject * parent, const char * name )
-:QValidator(parent, name)
+kt::LocaleFloatValidator::LocaleFloatValidator( TQObject * tqparent, const char * name )
+:TQValidator(tqparent, name)
{
- QString decimalPoint = QRegExp::escape(KGlobal::locale()->decimalSymbol());
+ TQString decimalPoint = TQRegExp::escape(KGlobal::locale()->decimalSymbol());
regexp.setPattern("^-?\\d*(" + decimalPoint + "\\d*)?$");
}
-QValidator::State kt::LocaleFloatValidator::validate( QString & str, int & pos) const
+TQValidator::State kt::LocaleFloatValidator::validate( TQString & str, int & pos) const
{
- return regexp.exactMatch(str) ? QValidator::Acceptable : QValidator::Invalid;
+ return regexp.exactMatch(str) ? TQValidator::Acceptable : TQValidator::Invalid;
}
diff --git a/plugins/infowidget/localefloatvalidator.h b/plugins/infowidget/localefloatvalidator.h
index d4d12ee..3466445 100644
--- a/plugins/infowidget/localefloatvalidator.h
+++ b/plugins/infowidget/localefloatvalidator.h
@@ -22,23 +22,24 @@
#ifndef LOCALEFLOATVALIDATOR_H
#define LOCALEFLOATVALIDATOR_H
-#include <qvalidator.h>
-class QRegExp;
+#include <tqvalidator.h>
+class TQRegExp;
namespace kt{
/**
* @author Jonas Widarsson
*
* A float validator that respects KLocale::decimalSymbol()
*/
- class LocaleFloatValidator : public QValidator
+ class LocaleFloatValidator : public TQValidator
{
Q_OBJECT
+ TQ_OBJECT
public:
- LocaleFloatValidator( QObject * parent, const char *name = 0 );
+ LocaleFloatValidator( TQObject * tqparent, const char *name = 0 );
- virtual QValidator::State validate( QString & str, int & pos) const;
+ virtual TQValidator::State validate( TQString & str, int & pos) const;
private:
- QRegExp regexp;
+ TQRegExp regexp;
};
}
diff --git a/plugins/infowidget/peerview.cpp b/plugins/infowidget/peerview.cpp
index 0e05791..a3876c6 100644
--- a/plugins/infowidget/peerview.cpp
+++ b/plugins/infowidget/peerview.cpp
@@ -27,8 +27,8 @@
#include <kstandarddirs.h>
#include <kmessagebox.h>
#include <ksocketaddress.h>
-#include <qpoint.h>
-#include <qlistview.h>
+#include <tqpoint.h>
+#include <tqlistview.h>
#include <kpopupmenu.h>
#include <interfaces/peerinterface.h>
#include <interfaces/functions.h>
@@ -53,13 +53,13 @@ namespace kt
Uint32 PeerViewItem::pvi_count = 0;
// Global GeoIP pointer, gets destroyed when no PeerViewItem's exist
static GeoIP* geo_ip = 0;
- static QPixmap yes_pix;
- static QPixmap no_pix;
- static QPixmap lock_pix;
+ static TQPixmap yes_pix;
+ static TQPixmap no_pix;
+ static TQPixmap lock_pix;
static FlagDB flagDB(22, 18);
static bool yes_no_pix_loaded = false;
static bool geoip_db_exists = true;
- static QString geoip_data_file;
+ static TQString geoip_data_file;
PeerViewItem::PeerViewItem(PeerView* pv,kt::PeerInterface* peer) : KListViewItem(pv),peer(peer)
{
@@ -67,8 +67,8 @@ namespace kt
{
KIconLoader* iload = KGlobal::iconLoader();
/* Prefer builtin flag images to the ones provided by KDE */
- flagDB.addFlagSource("data", QString("ktorrent/geoip/%1.png"));
- flagDB.addFlagSource("locale", QString("l10n/%1/flag.png"));
+ flagDB.addFlagSource("data", TQString("ktorrent/geoip/%1.png"));
+ flagDB.addFlagSource("locale", TQString("l10n/%1/flag.png"));
yes_pix = iload->loadIcon("button_ok",KIcon::Small);
no_pix = iload->loadIcon("button_cancel",KIcon::Small);
lock_pix = iload->loadIcon("ktencrypted",KIcon::Small);
@@ -111,7 +111,7 @@ namespace kt
country_code = GeoIP_country_code[country_id];
country_name = GeoIP_country_name[country_id];
setText(1, country_name);
- m_country = QString(country_name);
+ m_country = TQString(country_name);
}
else
{
@@ -170,16 +170,16 @@ namespace kt
setText(5,s.choked ? i18n("Yes") : i18n("No"));
//setPixmap(6,!s.snubbed ? yes_pix : no_pix);
setText(6,s.snubbed ? i18n("Yes") : i18n("No"));
- setText(7,QString("%1 %").arg(loc->formatNumber(s.perc_of_file,2)));
+ setText(7,TQString("%1 %").tqarg(loc->formatNumber(s.perc_of_file,2)));
setPixmap(8,s.dht_support ? yes_pix : no_pix);
setText(9,loc->formatNumber(s.aca_score,2));
- setPixmap(10,s.has_upload_slot ? yes_pix : QPixmap());
- setText(11,QString("%1 / %2").arg(s.num_down_requests).arg(s.num_up_requests));
+ setPixmap(10,s.has_upload_slot ? yes_pix : TQPixmap());
+ setText(11,TQString("%1 / %2").tqarg(s.num_down_requests).tqarg(s.num_up_requests));
setText(12, BytesToString(s.bytes_downloaded));
setText(13, BytesToString(s.bytes_uploaded));
}
- int PeerViewItem::compare(QListViewItem * i,int col,bool) const
+ int PeerViewItem::compare(TQListViewItem * i,int col,bool) const
{
PeerViewItem* pvi = (PeerViewItem*) i;
PeerInterface* op = pvi->peer;
@@ -188,9 +188,9 @@ namespace kt
switch (col)
{
case 0: return CompareVal(ip,pvi->ip); // use numeric representation to sort
- //return QString::compare(s.ip_address,os.ip_address);
- case 1: return QString::compare(m_country, pvi->m_country);
- case 2: return QString::compare(s.client,os.client);
+ //return TQString::compare(s.ip_address,os.ip_address);
+ case 1: return TQString::compare(m_country, pvi->m_country);
+ case 2: return TQString::compare(s.client,os.client);
case 3: return CompareVal(s.download_rate,os.download_rate);
case 4: return CompareVal(s.upload_rate,os.upload_rate);
case 5: return CompareVal(s.choked,os.choked);
@@ -207,8 +207,8 @@ namespace kt
return 0;
}
- PeerView::PeerView(QWidget *parent, const char *name)
- : KListView(parent, name)
+ PeerView::PeerView(TQWidget *tqparent, const char *name)
+ : KListView(tqparent, name)
{
addColumn(i18n("IP"));
addColumn(i18n("Country"));
@@ -228,20 +228,20 @@ namespace kt
setAllColumnsShowFocus(true);
setShowSortIndicator(true);
- setColumnAlignment(3,Qt::AlignRight);
- setColumnAlignment(4,Qt::AlignRight);
- setColumnAlignment(5,Qt::AlignCenter);
- setColumnAlignment(6,Qt::AlignCenter);
- setColumnAlignment(7,Qt::AlignRight);
- setColumnAlignment(8,Qt::AlignCenter);
- setColumnAlignment(9,Qt::AlignRight);
- setColumnAlignment(10,Qt::AlignCenter);
- setColumnAlignment(11,Qt::AlignCenter);
- setColumnAlignment(12,Qt::AlignRight);
- setColumnAlignment(13,Qt::AlignRight);
+ setColumnAlignment(3,TQt::AlignRight);
+ setColumnAlignment(4,TQt::AlignRight);
+ setColumnAlignment(5,TQt::AlignCenter);
+ setColumnAlignment(6,TQt::AlignCenter);
+ setColumnAlignment(7,TQt::AlignRight);
+ setColumnAlignment(8,TQt::AlignCenter);
+ setColumnAlignment(9,TQt::AlignRight);
+ setColumnAlignment(10,TQt::AlignCenter);
+ setColumnAlignment(11,TQt::AlignCenter);
+ setColumnAlignment(12,TQt::AlignRight);
+ setColumnAlignment(13,TQt::AlignRight);
for (Uint32 i = 0;i < (Uint32)columns();i++)
- setColumnWidthMode(i,QListView::Manual);
+ setColumnWidthMode(i,TQListView::Manual);
setShowSortIndicator(true);
@@ -249,10 +249,10 @@ namespace kt
kick_id = menu->insertItem(KGlobal::iconLoader()->loadIcon("delete_user", KIcon::NoGroup), i18n("to kick", "Kick peer"));
ban_id = menu->insertItem(KGlobal::iconLoader()->loadIcon("filter",KIcon::NoGroup), i18n("to ban", "Ban peer"));
- connect(this,SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint& )),
- this,SLOT(showContextMenu(KListView*, QListViewItem*, const QPoint& )));
- connect(menu, SIGNAL ( activated ( int ) ), this, SLOT ( contextItem ( int ) ) );
- setFrameShape(QFrame::NoFrame);
+ connect(this,TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint& )),
+ this,TQT_SLOT(showContextMenu(KListView*, TQListViewItem*, const TQPoint& )));
+ connect(menu, TQT_SIGNAL ( activated ( int ) ), this, TQT_SLOT ( contextItem ( int ) ) );
+ setFrameShape(TQFrame::NoFrame);
}
@@ -267,7 +267,7 @@ namespace kt
void PeerView::removePeer(kt::PeerInterface* peer)
{
- QMap<kt::PeerInterface*,PeerViewItem*>::iterator it = items.find(peer);
+ TQMap<kt::PeerInterface*,PeerViewItem*>::iterator it = items.tqfind(peer);
if (it == items.end())
{
return;
@@ -290,7 +290,7 @@ namespace kt
IPBlocklist& filter = IPBlocklist::instance();
const PeerInterface::Stats & s = peer->getStats();
KNetwork::KIpAddress ip(s.ip_address);
- QString ips = ip.toString();
+ TQString ips = ip.toString();
/**
* @TODO Clean this up.
* this whole mess was because of KNetwork classes
@@ -314,7 +314,7 @@ namespace kt
void PeerView::update()
{
- QMap<kt::PeerInterface*,PeerViewItem*>::iterator i = items.begin();
+ TQMap<kt::PeerInterface*,PeerViewItem*>::iterator i = items.begin();
while (i != items.end())
{
PeerViewItem* it = i.data();
@@ -330,7 +330,7 @@ namespace kt
clear();
}
- void PeerView::showContextMenu( KListView*, QListViewItem* item, const QPoint& p)
+ void PeerView::showContextMenu( KListView*, TQListViewItem* item, const TQPoint& p)
{
if(!item)
return;
diff --git a/plugins/infowidget/peerview.h b/plugins/infowidget/peerview.h
index a4a8b94..e7e403b 100644
--- a/plugins/infowidget/peerview.h
+++ b/plugins/infowidget/peerview.h
@@ -20,11 +20,11 @@
#ifndef PEERVIEW_H
#define PEERVIEW_H
-#include <qmap.h>
+#include <tqmap.h>
#include <klistview.h>
-#include <qlistview.h>
+#include <tqlistview.h>
#include <kpopupmenu.h>
-#include <qpoint.h>
+#include <tqpoint.h>
#include <util/constants.h>
namespace kt
@@ -35,7 +35,7 @@ namespace kt
class PeerViewItem : public KListViewItem
{
kt::PeerInterface* peer;
- QString m_country;
+ TQString m_country;
bt::Uint32 ip;
// counter to keep track of how many PeerViewItem objects are in existence
static bt::Uint32 pvi_count;
@@ -44,7 +44,7 @@ namespace kt
virtual ~PeerViewItem();
void update();
- int compare(QListViewItem * i,int col,bool) const;
+ int compare(TQListViewItem * i,int col,bool) const;
kt::PeerInterface* getPeer() { return peer; }
};
@@ -55,10 +55,11 @@ namespace kt
class PeerView : public KListView
{
Q_OBJECT
+ TQ_OBJECT
- QMap<kt::PeerInterface*,PeerViewItem*> items;
+ TQMap<kt::PeerInterface*,PeerViewItem*> items;
public:
- PeerView(QWidget *parent = 0, const char *name = 0);
+ PeerView(TQWidget *tqparent = 0, const char *name = 0);
virtual ~PeerView();
public slots:
@@ -68,7 +69,7 @@ namespace kt
void kickPeer(kt::PeerInterface* peer);
void update();
void removeAll();
- void showContextMenu(KListView* ,QListViewItem* item,const QPoint & p);
+ void showContextMenu(KListView* ,TQListViewItem* item,const TQPoint & p);
void contextItem(int id);
private:
KPopupMenu* menu;
diff --git a/plugins/infowidget/statustab.cpp b/plugins/infowidget/statustab.cpp
index b0974ed..0fc6f16 100644
--- a/plugins/infowidget/statustab.cpp
+++ b/plugins/infowidget/statustab.cpp
@@ -19,8 +19,8 @@
***************************************************************************/
#include <math.h>
#include <float.h>
-#include <qdatetime.h>
-#include <qcheckbox.h>
+#include <tqdatetime.h>
+#include <tqcheckbox.h>
#include <kglobal.h>
#include <klocale.h>
#include <interfaces/functions.h>
@@ -34,10 +34,10 @@
namespace kt
{
- StatusTab::StatusTab(QWidget* parent, const char* name, WFlags fl)
- : StatusTabBase(parent,name,fl),curr_tc(0)
+ StatusTab::StatusTab(TQWidget* tqparent, const char* name, WFlags fl)
+ : StatusTabBase(tqparent,name,fl),curr_tc(0)
{
- QColorGroup cg = colorGroup();
+ TQColorGroup cg = tqcolorGroup();
// do not use hardcoded colors
m_info_caption->setPaletteBackgroundColor(cg.mid());
m_chunks_caption->setPaletteBackgroundColor(cg.mid());
@@ -46,15 +46,15 @@ namespace kt
maxRatio->setMinValue(0.0f);
maxRatio->setMaxValue(100.0f);
maxRatio->setStep(0.1f);
- connect(maxRatio, SIGNAL(valueHasChanged()), this, SLOT(maxRatioReturnPressed()));
- connect(useLimit, SIGNAL( toggled(bool) ), this, SLOT( useLimitToggled(bool) ) );
+ connect(maxRatio, TQT_SIGNAL(valueHasChanged()), this, TQT_SLOT(maxRatioReturnPressed()));
+ connect(useLimit, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( useLimitToggled(bool) ) );
maxTime->setMinValue(0.0f);
maxTime->setMaxValue(10000000.0f);
maxTime->setStep(0.05f);
maxTime->setSpecialValueText(i18n("No limit"));
- connect(useTimeLimit,SIGNAL(toggled(bool)), this,SLOT(useTimeLimitToggled(bool)));
- connect(maxTime,SIGNAL(valueHasChanged()), this, SLOT(timeValueChanged()));
+ connect(useTimeLimit,TQT_SIGNAL(toggled(bool)), this,TQT_SLOT(useTimeLimitToggled(bool)));
+ connect(maxTime,TQT_SIGNAL(valueHasChanged()), this, TQT_SLOT(timeValueChanged()));
int h = (int)ceil(fontMetrics().height()*1.25);
m_chunk_bar->setFixedHeight(h);
@@ -130,7 +130,7 @@ namespace kt
if (s.running)
{
- QTime t;
+ TQTime t;
t = t.addSecs(curr_tc->getTimeToNextTrackerUpdate());
m_tracker_update_time->setText(t.toString("mm:ss"));
}
@@ -141,17 +141,17 @@ namespace kt
m_tracker_status->setText(s.trackerstatus);
- m_seeders->setText(QString("%1 (%2)")
- .arg(s.seeders_connected_to).arg(s.seeders_total));
+ m_seeders->setText(TQString("%1 (%2)")
+ .tqarg(s.seeders_connected_to).tqarg(s.seeders_total));
- m_leechers->setText(QString("%1 (%2)")
- .arg(s.leechers_connected_to).arg(s.leechers_total));
+ m_leechers->setText(TQString("%1 (%2)")
+ .tqarg(s.leechers_connected_to).tqarg(s.leechers_total));
float ratio = kt::ShareRatio(s);
if(!maxRatio->hasFocus() && useLimit->isChecked())
maxRatioUpdate();
- m_share_ratio->setText(QString("<font color=\"%1\">%2</font>").arg(ratio <= 0.8 ? "#ff0000" : "#1c9a1c").arg(KGlobal::locale()->formatNumber(ratio,2)));
+ m_share_ratio->setText(TQString("<font color=\"%1\">%2</font>").tqarg(ratio <= 0.8 ? "#ff0000" : "#1c9a1c").tqarg(KGlobal::locale()->formatNumber(ratio,2)));
Uint32 secs = curr_tc->getRunningTimeUL();
if (secs == 0)
diff --git a/plugins/infowidget/statustab.h b/plugins/infowidget/statustab.h
index 14e987d..b747596 100644
--- a/plugins/infowidget/statustab.h
+++ b/plugins/infowidget/statustab.h
@@ -30,9 +30,10 @@ namespace kt
class StatusTab : public StatusTabBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- StatusTab(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ StatusTab(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
virtual ~StatusTab();
diff --git a/plugins/infowidget/statustabbase.ui b/plugins/infowidget/statustabbase.ui
index 179f68a..3ef85e8 100644
--- a/plugins/infowidget/statustabbase.ui
+++ b/plugins/infowidget/statustabbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>StatusTabBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>StatusTabBase</cstring>
</property>
@@ -13,13 +13,13 @@
</rect>
</property>
<property name="caption">
- <string>Status</string>
+ <string>tqStatus</string>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_info_caption</cstring>
</property>
@@ -39,23 +39,23 @@
<string>Info</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout16</cstring>
+ <cstring>tqlayout16</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout15</cstring>
+ <cstring>tqlayout15</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -63,7 +63,7 @@
<string>Seeders:</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1_6</cstring>
</property>
@@ -71,11 +71,11 @@
<string>Leechers:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="1">
+ <widget class="TQLabel" row="1" column="1">
<property name="name">
<cstring>m_seeders</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>100</width>
<height>0</height>
@@ -87,15 +87,15 @@
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
- <widget class="QLabel" row="0" column="1">
+ <widget class="TQLabel" row="0" column="1">
<property name="name">
<cstring>m_leechers</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>100</width>
<height>0</height>
@@ -107,21 +107,21 @@
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout14</cstring>
+ <cstring>tqlayout14</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
@@ -129,11 +129,11 @@
<string>Average Down Speed:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="1">
+ <widget class="TQLabel" row="1" column="1">
<property name="name">
<cstring>m_avg_down</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>100</width>
<height>0</height>
@@ -145,15 +145,15 @@
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
- <widget class="QLabel" row="0" column="1">
+ <widget class="TQLabel" row="0" column="1">
<property name="name">
<cstring>m_avg_up</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>100</width>
<height>0</height>
@@ -165,11 +165,11 @@
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1_7</cstring>
</property>
@@ -179,15 +179,15 @@
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout12</cstring>
+ <cstring>tqlayout12</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel3_2</cstring>
</property>
@@ -195,19 +195,19 @@
<string>Next update in:</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1_5</cstring>
</property>
<property name="text">
- <string>Tracker Status:</string>
+ <string>Tracker tqStatus:</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="1">
+ <widget class="TQLabel" row="0" column="1">
<property name="name">
<cstring>m_tracker_status</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>100</width>
<height>0</height>
@@ -219,15 +219,15 @@
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
- <widget class="QLabel" row="1" column="1">
+ <widget class="TQLabel" row="1" column="1">
<property name="name">
<cstring>m_tracker_update_time</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>100</width>
<height>0</height>
@@ -239,7 +239,7 @@
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -255,7 +255,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>207</width>
<height>20</height>
@@ -264,31 +264,31 @@
</spacer>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout17</cstring>
+ <cstring>tqlayout17</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout23</cstring>
+ <cstring>tqlayout23</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout25</cstring>
+ <cstring>tqlayout25</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_chunks_caption</cstring>
</property>
@@ -316,7 +316,7 @@
<string>Chunks</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -344,14 +344,14 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_3</cstring>
</property>
@@ -379,7 +379,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>20</height>
@@ -398,7 +398,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -429,15 +429,15 @@
<enum>Vertical</enum>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout16</cstring>
+ <cstring>tqlayout16</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_sharing_caption</cstring>
</property>
@@ -457,9 +457,9 @@
<string>Sharing</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout15</cstring>
+ <cstring>tqlayout15</cstring>
</property>
<grid>
<property name="name">
@@ -477,7 +477,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>20</width>
<height>0</height>
@@ -487,7 +487,7 @@
<string>Your upload will stop when share ratio gets to this value. Zero means no limit.</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel3_3</cstring>
</property>
@@ -495,9 +495,9 @@
<string>Share ratio:</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="2" column="1">
+ <widget class="TQLayoutWidget" row="2" column="1">
<property name="name">
- <cstring>layout11</cstring>
+ <cstring>tqlayout11</cstring>
</property>
<hbox>
<property name="name">
@@ -515,7 +515,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>20</width>
<height>0</height>
@@ -525,7 +525,7 @@
<string>Your upload will stop when you have uploaded for this many hours.</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_9</cstring>
</property>
@@ -535,7 +535,7 @@
</widget>
</hbox>
</widget>
- <widget class="QCheckBox" row="1" column="0">
+ <widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>useLimit</cstring>
</property>
@@ -549,7 +549,7 @@
<string>Limit works only in seed mode</string>
</property>
</widget>
- <widget class="QCheckBox" row="2" column="0">
+ <widget class="TQCheckBox" row="2" column="0">
<property name="name">
<cstring>useTimeLimit</cstring>
</property>
@@ -557,11 +557,11 @@
<string>Time &amp;limit:</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="1">
+ <widget class="TQLabel" row="0" column="1">
<property name="name">
<cstring>m_share_ratio</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>50</width>
<height>0</height>
@@ -573,7 +573,7 @@
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -589,7 +589,7 @@
<property name="sizeType">
<enum>MinimumExpanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -657,7 +657,7 @@
<data format="XBM.GZ" length="79">789c534e494dcbcc4b554829cdcdad8c2fcf4c29c95030e0524611cd48cd4ccf28010a1797249664262b2467241641a592324b8aa363156c15aab914146aadb90067111b1f</data>
</image>
</images>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>downloadedchunkbar.h</includehint>
<includehint>availabilitychunkbar.h</includehint>
diff --git a/plugins/infowidget/trackerview.cpp b/plugins/infowidget/trackerview.cpp
index 2339189..0c23548 100644
--- a/plugins/infowidget/trackerview.cpp
+++ b/plugins/infowidget/trackerview.cpp
@@ -21,13 +21,13 @@
#include <interfaces/torrentinterface.h>
#include <interfaces/trackerslist.h>
-#include <qdatetime.h>
-#include <qstring.h>
-#include <qlabel.h>
-#include <qlistview.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
+#include <tqdatetime.h>
+#include <tqstring.h>
+#include <tqlabel.h>
+#include <tqlistview.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
#include <klocale.h>
#include <kurl.h>
@@ -43,8 +43,8 @@
namespace kt
{
- TrackerView::TrackerView(QWidget *parent, const char *name)
- :TrackerViewBase(parent, name), tc(0)
+ TrackerView::TrackerView(TQWidget *tqparent, const char *name)
+ :TrackerViewBase(tqparent, name), tc(0)
{
KIconLoader* iload = KGlobal::iconLoader();
btnUpdate->setIconSet(iload->loadIconSet("apply", KIcon::Small));
@@ -52,8 +52,8 @@ namespace kt
btnRemove->setIconSet(iload->loadIconSet("remove", KIcon::Small));
btnRestore->setIconSet(iload->loadIconSet("undo", KIcon::Small));
- QPalette p = lblCurrent->palette();
- p.setColor(QPalette::Active,QColorGroup::Base,p.color(QPalette::Active,QColorGroup::Background));
+ TQPalette p = lblCurrent->palette();
+ p.setColor(TQPalette::Active,TQColorGroup::Base,p.color(TQPalette::Active,TQColorGroup::Background));
lblCurrent->setPalette(p);
}
@@ -79,13 +79,13 @@ namespace kt
return;
}
- new QListViewItem(listTrackers, txtTracker->text());
+ new TQListViewItem(listTrackers, txtTracker->text());
tc->getTrackersList()->addTracker(url,true);
}
void TrackerView::btnRemove_clicked()
{
- QListViewItem* current = listTrackers->currentItem();
+ TQListViewItem* current = listTrackers->currentItem();
if(!current)
return;
@@ -98,7 +98,7 @@ namespace kt
void TrackerView::btnChange_clicked()
{
- QListViewItem* current = listTrackers->currentItem();
+ TQListViewItem* current = listTrackers->currentItem();
if(!current)
return;
@@ -120,7 +120,7 @@ namespace kt
return;
for (KURL::List::const_iterator i = trackers.begin();i != trackers.end();i++)
- new QListViewItem(listTrackers, (*i).prettyURL());
+ new TQListViewItem(listTrackers, (*i).prettyURL());
}
void TrackerView::btnUpdate_clicked()
@@ -131,7 +131,7 @@ namespace kt
tc->updateTracker();
}
- void TrackerView::listTrackers_currentChanged(QListViewItem* item)
+ void TrackerView::listTrackers_currentChanged(TQListViewItem* item)
{
if(!item)
txtTracker->clear();
@@ -157,7 +157,7 @@ namespace kt
const TorrentStats & s = tc->getStats();
if (s.running)
{
- QTime t;
+ TQTime t;
t = t.addSecs(tc->getTimeToNextTrackerUpdate());
lblUpdate->setText(t.toString("mm:ss"));
}
@@ -167,17 +167,17 @@ namespace kt
// only enable change when we can actually change and the torrent is running
btnChange->setEnabled(s.running && listTrackers->childCount() > 1);
- lblStatus->setText("<b>" + s.trackerstatus + "</b>");
+ lbltqStatus->setText("<b>" + s.trackerstatus + "</b>");
if (tc->getTrackersList())
{
- QString t = tc->getTrackersList()->getTrackerURL().prettyURL();
+ TQString t = tc->getTrackersList()->getTrackerURL().prettyURL();
if (lblCurrent->text() != t )
lblCurrent->setText(t);
}
else
lblCurrent->clear();
- btnAdd->setEnabled(txtTracker->text() != QString::null && !tc->getStats().priv_torrent);
+ btnAdd->setEnabled(txtTracker->text() != TQString() && !tc->getStats().priv_torrent);
}
void TrackerView::onLoadingFinished(const KURL & ,bool,bool)
@@ -191,7 +191,7 @@ namespace kt
listTrackers->clear();
if(!tc)
{
- lblStatus->clear();
+ lbltqStatus->clear();
lblCurrent->clear();
lblUpdate->clear();
txtTracker->clear();
@@ -226,12 +226,12 @@ namespace kt
const KURL::List trackers = tc->getTrackersList()->getTrackerURLs();
if(trackers.empty())
{
- new QListViewItem(listTrackers, tc->getTrackersList()->getTrackerURL().prettyURL());
+ new TQListViewItem(listTrackers, tc->getTrackersList()->getTrackerURL().prettyURL());
}
else
{
for (KURL::List::const_iterator i = trackers.begin();i != trackers.end();i++)
- new QListViewItem(listTrackers, (*i).prettyURL());
+ new TQListViewItem(listTrackers, (*i).prettyURL());
}
btnUpdate->setEnabled(s.running && tc->announceAllowed());
diff --git a/plugins/infowidget/trackerview.h b/plugins/infowidget/trackerview.h
index fd23fb8..9499e4b 100644
--- a/plugins/infowidget/trackerview.h
+++ b/plugins/infowidget/trackerview.h
@@ -35,8 +35,9 @@ namespace kt
class TrackerView: public TrackerViewBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- TrackerView(QWidget *parent = 0, const char *name = 0);
+ TrackerView(TQWidget *tqparent = 0, const char *name = 0);
virtual ~TrackerView();
void update();
@@ -48,7 +49,7 @@ namespace kt
virtual void btnChange_clicked();
virtual void btnRemove_clicked();
virtual void btnAdd_clicked();
- virtual void listTrackers_currentChanged(QListViewItem*);
+ virtual void listTrackers_currentChanged(TQListViewItem*);
void onLoadingFinished(const KURL & ,bool,bool);
private:
diff --git a/plugins/infowidget/trackerviewbase.ui b/plugins/infowidget/trackerviewbase.ui
index 758ddc7..cbdbce5 100644
--- a/plugins/infowidget/trackerviewbase.ui
+++ b/plugins/infowidget/trackerviewbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>TrackerViewBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>TrackerViewBase</cstring>
</property>
@@ -24,7 +24,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLineEdit" row="1" column="0">
+ <widget class="TQLineEdit" row="1" column="0">
<property name="name">
<cstring>txtTracker</cstring>
</property>
@@ -48,9 +48,9 @@
<string>Add Trac&amp;ker</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="2" column="1">
+ <widget class="TQLayoutWidget" row="2" column="1">
<property name="name">
- <cstring>layout8</cstring>
+ <cstring>tqlayout8</cstring>
</property>
<vbox>
<property name="name">
@@ -67,7 +67,7 @@
<string></string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>btnChange</cstring>
</property>
@@ -85,7 +85,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>68</height>
@@ -127,15 +127,15 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -151,7 +151,7 @@
<string>URL:</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>lblCurrent</cstring>
</property>
@@ -180,14 +180,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -200,12 +200,12 @@
</sizepolicy>
</property>
<property name="text">
- <string>Status:</string>
+ <string>tqStatus:</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
- <cstring>lblStatus</cstring>
+ <cstring>lbltqStatus</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
@@ -229,14 +229,14 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel5</cstring>
</property>
@@ -252,7 +252,7 @@
<string>Next update in:</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>lblUpdate</cstring>
</property>
@@ -298,15 +298,15 @@
<slot>btnRestore_clicked()</slot>
</connection>
</connections>
-<slots>
+<Q_SLOTS>
<slot>btnChange_clicked()</slot>
- <slot>listTrackers_currentChanged(QListViewItem*)</slot>
+ <slot>listTrackers_currentChanged(TQListViewItem*)</slot>
<slot>btnUpdate_clicked()</slot>
<slot>btnAdd_clicked()</slot>
<slot>btnRemove_clicked()</slot>
<slot>btnRestore_clicked()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kpushbutton.h</includehint>
<includehint>kpushbutton.h</includehint>