Commit 97cc1bbb authored by Laurent Montel's avatar Laurent Montel 😁

Byebye "QToolTip::add"

Deprecated--

svn path=/trunk/KDE/kdemultimedia/juk/; revision=474721
parent cb1c516c
......@@ -13,7 +13,7 @@
* *
***************************************************************************/
#include <kurldrag.h>
#include <k3urldrag.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <kdebug.h>
......
......@@ -16,7 +16,7 @@
#include <kiconloader.h>
#include <klocale.h>
#include <kdebug.h>
#include <kurldrag.h>
#include <k3urldrag.h>
#include <kio/netaccess.h>
#include <qimage.h>
......
......@@ -15,7 +15,7 @@
#include <kconfig.h>
#include <kmessagebox.h>
#include <kurldrag.h>
#include <k3urldrag.h>
#include <kiconloader.h>
#include <klineedit.h>
#include <kaction.h>
......
......@@ -17,7 +17,7 @@
#define PLAYLIST_H
#include <klistview.h>
#include <kurldrag.h>
#include <k3urldrag.h>
#include <kdebug.h>
#include <kglobalsettings.h>
......
......@@ -14,7 +14,7 @@
***************************************************************************/
#include <kiconloader.h>
#include <kurldrag.h>
#include <k3urldrag.h>
#include <kmessagebox.h>
#include <kmenu.h>
#include <kaction.h>
......
......@@ -253,12 +253,12 @@ QWidget *SliderAction::createWidget(QWidget *parent) // virtual -- used by base
QLabel *trackPositionLabel = new QLabel(base);
trackPositionLabel->setName("kde toolbar widget");
trackPositionLabel->setPixmap(SmallIcon("player_time"));
QToolTip::add(trackPositionLabel, i18n("Track position"));
trackPositionLabel->setToolTip( i18n("Track position"));
m_layout->addWidget(trackPositionLabel);
m_trackPositionSlider = new TrackPositionSlider(base, "trackPositionSlider");
m_trackPositionSlider->setMaxValue(maxPosition);
QToolTip::add(m_trackPositionSlider, i18n("Track position"));
m_trackPositionSlider->setToolTip( i18n("Track position"));
m_layout->addWidget(m_trackPositionSlider);
connect(m_trackPositionSlider, SIGNAL(sliderPressed()), this, SLOT(slotSliderPressed()));
connect(m_trackPositionSlider, SIGNAL(sliderReleased()), this, SLOT(slotSliderReleased()));
......@@ -268,12 +268,12 @@ QWidget *SliderAction::createWidget(QWidget *parent) // virtual -- used by base
QLabel *volumeLabel = new QLabel(base);
volumeLabel->setName("kde toolbar widget");
volumeLabel->setPixmap(SmallIcon("player_volume"));
QToolTip::add(volumeLabel, i18n("Volume"));
volumeLabel->setToolTip( i18n("Volume"));
m_layout->addWidget(volumeLabel);
m_volumeSlider = new VolumeSlider(orientation, base, "volumeSlider");
m_volumeSlider->setMaxValue(100);
QToolTip::add(m_volumeSlider, i18n("Volume"));
m_volumeSlider->setToolTip( i18n("Volume"));
m_layout->addWidget(m_volumeSlider);
connect(m_volumeSlider, SIGNAL(signalVolumeChanged(int)), SIGNAL(signalVolumeChanged(int)));
connect(m_volumeSlider, SIGNAL(sliderPressed()), this, SLOT(slotVolumeSliderPressed()));
......
......@@ -90,7 +90,7 @@ StatusLabel::StatusLabel(PlaylistInterface *playlist, QWidget *parent, const cha
jumpButton->setPixmap(SmallIcon("up"));
jumpButton->setFlat(true);
QToolTip::add(jumpButton, i18n("Jump to the currently playing item"));
jumpButton->setToolTip( i18n("Jump to the currently playing item"));
connect(jumpButton, SIGNAL(clicked()), action("showPlaying"), SLOT(activate()));
installEventFilter(this);
......
......@@ -524,7 +524,7 @@ void SystemTray::setToolTip(const QString &tip, const QPixmap &cover)
QToolTip::remove(this);
if(tip.isNull())
QToolTip::add(this, i18n("JuK"));
this->setToolTip( i18n("JuK"));
else {
QPixmap myCover = cover;
if(cover.isNull())
......@@ -542,7 +542,7 @@ void SystemTray::setToolTip(const QString &tip, const QPixmap &cover)
html = html.arg("<img valign=\"middle\" src=\"tipCover\"");
html = html.arg(QString("<nobr>%1</nobr>").arg(tip), i18n("JuK"));
QToolTip::add(this, html);
this->setToolTip( html);
}
}
......
......@@ -504,18 +504,21 @@ void TagEditor::setupLayout()
//////////////////////////////////////////////////////////////////////////////
{ // just for organization
m_artistNameBox = new KComboBox(true, this, "artistNameBox");
m_artistNameBox = new KComboBox( true, this );
m_artistNameBox->setObjectName( "artistNameBox" );
m_artistNameBox->setCompletionMode(KGlobalSettings::CompletionAuto);
addItem(i18n("&Artist name:"), m_artistNameBox, leftColumnLayout, "personal");
m_trackNameBox = new KLineEdit(this, "trackNameBox");
addItem(i18n("&Track name:"), m_trackNameBox, leftColumnLayout, "player_play");
m_albumNameBox = new KComboBox(true, this, "albumNameBox");
m_albumNameBox = new KComboBox( true, this );
m_albumNameBox->setObjectName( "albumNameBox" );
m_albumNameBox->setCompletionMode(KGlobalSettings::CompletionAuto);
addItem(i18n("Album &name:"), m_albumNameBox, leftColumnLayout, "cdrom_unmount");
m_genreBox = new KComboBox(true, this, "genreBox");
m_genreBox = new KComboBox( true, this );
m_genreBox->setObjectName( "genreBox" );
addItem(i18n("&Genre:"), m_genreBox, leftColumnLayout, "knotify");
// this fills the space at the bottem of the left column
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment