[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/network/kmldonkey/kmldonkey
From: Nicolas Lécureuil <neoclust () mandriva ! org>
Date: 2009-06-11 21:13:05
Message-ID: 1244754785.501070.811.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 980494 by nlecureuil:
Remove deprecated functions
M +1 -1 availability.cpp
M +1 -1 consolepage.cpp
M +7 -7 kmldonkey.cpp
M +5 -5 listeditor.cpp
M +9 -9 prefs/prefs.cpp
M +3 -3 shareddirs.cpp
--- trunk/extragear/network/kmldonkey/kmldonkey/availability.cpp #980493:980494
@@ -218,7 +218,7 @@
for (int x = -1; x <= 1; x++) {
for (int y = -1; y <= 1; y++) {
QRect foo = rect();
- foo.moveBy(x, y);
+ foo.translate(x, y);
p.drawText(foo, Qt::AlignCenter, t);
}
}
--- trunk/extragear/network/kmldonkey/kmldonkey/consolepage.cpp #980493:980494
@@ -141,7 +141,7 @@
txt = "<p><b>" + txt + "</b></p>";
else {
QRegExp rxurl("[^\">](((https|http|ftp|news)://|(?!://)www\\.)([\\w\\.\\-\\_/~?=&%;:@+$,!*'\\(\\)\\|\\^\\[\\]\\`\\{\\}]+))");
- rxurl.setCaseSensitive(false);
+ rxurl.setCaseSensitivity(Qt::CaseInsensitive);
int pos = 0;
QString url, replaceurl;
while ((pos = rxurl.search(txt, pos)) >= 0) {
--- trunk/extragear/network/kmldonkey/kmldonkey/kmldonkey.cpp #980493:980494
@@ -296,11 +296,11 @@
statRate->setFrameShape(QFrame::Panel);
statRate->setFrameShadow(QFrame::Sunken);
- QToolTip::add(statServer, i18n("Server connected/total"));
- QToolTip::add(statFiles, i18n("Files downloading/finished"));
- QToolTip::add(statShare, i18n("Shared files total"));
- QToolTip::add(statTransfer, i18n("Transfer down/up"));
- QToolTip::add(statRate, i18n("Speed down/up"));
+ statServer->setToolTip(i18n("Server connected/total"));
+ statFiles->setToolTip(i18n("Files downloading/finished"));
+ statShare->setToolTip(i18n("Shared files total"));
+ statTransfer->setToolTip(i18n("Transfer down/up"));
+ statRate->setToolTip(i18n("Speed down/up"));
statusBar()->addWidget(statInfo,1);
statusBar()->addWidget(statServer);
@@ -1078,7 +1078,7 @@
const QString status = statInfoTooltip.isEmpty() ? tray->tooltip : QString("%1 \
%2").arg(tray->tooltip).arg(statInfoTooltip); changeStatusbar(status);
- QToolTip::add(statInfo, status);
+ statInfo->setToolTip(status);
KNotification::event(QString::fromLatin1("KMLDonkeyDisconnected"), status, \
QPixmap(), this);
Q3PtrListIterator<KMLDonkeyPage> it(pages);
@@ -1090,7 +1090,7 @@
void KMLDonkey::updateStatusBarTooltip()
{
DonkeyHost* host = (DonkeyHost*)hostManager->hostProperties(lastHost);
- QToolTip::add(statInfo, ki18n("Hostname: <b>%1</b><br>Host Address: \
<b>%2</b><br>Host Port: <b>%3</b><br>Username: <b>%4</b><br>" + \
statInfo->setToolTip(ki18n("Hostname: <b>%1</b><br>Host Address: <b>%2</b><br>Host \
Port: <b>%3</b><br>Username: <b>%4</b><br>"
"Core Version: <b>%7</b><br>Current GUI Protocol: \
<b>%5</b><br>Core's GUI Protocol: <b>%6</b>")
.subs(host->name())
.subs(host->address())
--- trunk/extragear/network/kmldonkey/kmldonkey/listeditor.cpp #980493:980494
@@ -96,19 +96,19 @@
KVBox *btnBox = new KVBox(box);
btnAdd = new KPushButton(i18n("&Add"), btnBox);
- QToolTip::add(btnAdd, i18n("Add a new item to the list"));
+ btnAdd->setToolTip(i18n("Add a new item to the list"));
connect(btnAdd, SIGNAL(clicked()), this, SLOT(slotAdd()));
btnRem = new KPushButton(i18n("&Remove"), btnBox);
- QToolTip::add(btnRem, i18n("Remove selected item from list"));
+ btnRem->setToolTip(i18n("Remove selected item from list"));
connect(btnRem, SIGNAL(clicked()), this, SLOT(slotRemove()));
btnUp = new KPushButton(i18n("&Up"), btnBox);
- QToolTip::add(btnUp, i18n("Move selected item up"));
+ btnUp->setToolTip(i18n("Move selected item up"));
connect(btnUp, SIGNAL(clicked()), this, SLOT(slotUp()));
btnDown = new KPushButton(i18n("&Down"), btnBox);
- QToolTip::add(btnDown, i18n("Move selected item down"));
+ btnDown->setToolTip(i18n("Move selected item down"));
connect(btnDown, SIGNAL(clicked()), this, SLOT(slotDown()));
btnBox->setStretchFactor(new QWidget(btnBox), 1);
@@ -142,7 +142,7 @@
ListEditorEdit *edit = 0;
if (editable) {
KHBox *box = new KHBox(editBox);
- if (! tooltip.isEmpty()) QToolTip::add(box, tooltip);
+ if (! tooltip.isEmpty()) box->setToolTip(tooltip);
new QLabel(column, box);
edit = new ListEditorEdit(box, list->columns() - 1);
edits.append(edit);
--- trunk/extragear/network/kmldonkey/kmldonkey/prefs/prefs.cpp #980493:980494
@@ -65,7 +65,7 @@
layout->addWidget(button);
button->setObjectName( "colorButton" );
label->setBuddy(button);
- QToolTip::add(this, tooltip);
+ this->setToolTip(tooltip);
}
const QColor ColorSelector::color()
@@ -88,7 +88,7 @@
setLayout(layout);
enableAutorenameCheckbox = new QCheckBox(i18n("&Enable automatic renaming of \
downloading files"), this);
- QToolTip::add(enableAutorenameCheckbox, i18n("Should downloading files be \
automatically renamed according to the search and replace list?")); + \
enableAutorenameCheckbox->setToolTip(i18n("Should downloading files be automatically \
renamed according to the search and replace list?"));
connect(enableAutorenameCheckbox, SIGNAL(toggled(bool)), this, \
SLOT(enableAutorename(bool))); layout->addWidget(enableAutorenameCheckbox);
@@ -113,7 +113,7 @@
coloredListsCheckbox = new QCheckBox(this);
layout->addWidget(coloredListsCheckbox);
coloredListsCheckbox->setText(i18n("&Colored list"));
- QToolTip::add(coloredListsCheckbox, i18n("Colorize items in the lists according \
to their status")); + coloredListsCheckbox->setToolTip(i18n("Colorize items in the \
lists according to their status"));
connect(coloredListsCheckbox, SIGNAL(toggled(bool)), this, \
SLOT(coloredLists(bool)));
QScrollArea *scroll = new QScrollArea(this);
@@ -158,7 +158,7 @@
srtlayout->addWidget(searchSourcesThresholdSlider);
searchSourcesThresholdSlider->setRange(2, 100, 10);
searchSourcesThresholdSlider->setSliderEnabled();
- QToolTip::add(searchSourcesThresholdSlider, i18n("The number of sources that \
will produce the full 'many sources' color")); + \
searchSourcesThresholdSlider->setToolTip(i18n("The number of sources that will \
produce the full 'many sources' color"));
// Downloaded
grpDown = new QGroupBox(i18n("Downloaded"), box);
@@ -191,12 +191,12 @@
avtlayout->addWidget(availabilityThresholdSlider);
availabilityThresholdSlider->setRange(2, 100, 10);
availabilityThresholdSlider->setSliderEnabled();
- QToolTip::add(availabilityThresholdSlider, i18n("The number of sources that will \
produce the full 'many sources' color")); + \
availabilityThresholdSlider->setToolTip(i18n("The number of sources that will produce \
the full 'many sources' color"));
availabilityShadingCheckbox = new QCheckBox(grpAvail);
grplayout->addWidget( availabilityShadingCheckbox );
availabilityShadingCheckbox->setText(i18n("Shaded availability display"));
- QToolTip::add(availabilityShadingCheckbox, i18n("Draw a fancier looking shaded \
availability display bar.")); + availabilityShadingCheckbox->setToolTip(i18n("Draw \
a fancier looking shaded availability display bar."));
QWidget *shdBox = new QWidget(grpAvail);
grplayout->addWidget( shdBox );
@@ -207,7 +207,7 @@
shdlayout->addWidget(availabilityShadingSlider);
availabilityShadingSlider->setRange(100, 400, 10);
availabilityShadingSlider->setSliderEnabled();
- QToolTip::add(availabilityShadingSlider, i18n("The depth of the availability bar \
shading - more is darker.")); + availabilityShadingSlider->setToolTip(i18n("The \
depth of the availability bar shading - more is darker."));
connect(availabilityShadingCheckbox, SIGNAL(toggled(bool)), \
availabilityShadingSlider, SLOT(setEnabled(bool)));
// Sources
@@ -244,12 +244,12 @@
layout->addWidget(new QLabel(i18n("Console font:"), this), 0, 0);
consoleFontSelect = new FontSelector(this, "consoleFontSelect", true);
- QToolTip::add(consoleFontSelect, i18n("Font used for the console"));
+ consoleFontSelect->setToolTip(i18n("Font used for the console"));
layout->addWidget(consoleFontSelect, 0, 1);
layout->addWidget(new QLabel(i18n("List font:"), this), 1, 0);
listFontSelect = new FontSelector(this, "listFontSelect");
- QToolTip::add(listFontSelect, i18n("Font used for the lists"));
+ listFontSelect->setToolTip(i18n("Font used for the lists"));
layout->addWidget(listFontSelect, 1, 1);
layout->setColumnStretch(1, 2);
--- trunk/extragear/network/kmldonkey/kmldonkey/shareddirs.cpp #980493:980494
@@ -114,13 +114,13 @@
btnAdd = new KPushButton(KIcon("list-add"), i18n("&Add"), btnBox);
btnboxLayout->addWidget(btnAdd);
- QToolTip::add(btnAdd, i18n("Add shared folder"));
+ btnAdd->setToolTip(i18n("Add shared folder"));
btnAdd->setEnabled(false);
connect(btnAdd, SIGNAL( clicked() ), this, SLOT( slotAdd() ));
btnRemove = new KPushButton(KIcon("list-remove"), i18n("&Remove"), btnBox);
btnboxLayout->addWidget(btnRemove);
- QToolTip::add(btnRemove, i18n("Remove shared folder"));
+ btnRemove->setToolTip(i18n("Remove shared folder"));
btnRemove->setEnabled(false);
connect(btnRemove, SIGNAL( clicked() ), this, SLOT( slotRemove() ));
@@ -145,7 +145,7 @@
connect(editDir, SIGNAL( textChanged(const QString &) ), this, SLOT( \
slotEditChanged() ));
if (KMLDonkey::App->hostManager->hostType(KMLDonkey::App->lastHost) != \
HostInterface::External) {
KPushButton *editBtn = new KPushButton(KGuiItem(QString::null, "fileopen"), \
hb1);
- QToolTip::add(editBtn, i18n("Browse folders"));
+ editBtn->setToolTip(i18n("Browse folders"));
connect(editBtn, SIGNAL( clicked() ), this, SLOT( slotDirPath() ));
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic