From e14e9b281d39f733028e70e9ac3c6e11f177bcc1 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sat, 30 Dec 2006 19:38:56 +0000 Subject: [PATCH] =?utf8?q?use=20KIcon,=20fewer=20deprecated=20warnings.=20?= =?utf8?q?patch=20by=20Nicolas=20L=C3=A9cureuil=20CCMAIL:neoclust@mandriva?= =?utf8?q?.org?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=618013 --- extdate/extdatepicker.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/extdate/extdatepicker.cpp b/extdate/extdatepicker.cpp index cd8a5f0..e9a39b7 100644 --- a/extdate/extdatepicker.cpp +++ b/extdate/extdatepicker.cpp @@ -145,7 +145,7 @@ void ExtDatePicker::init( const ExtDate &dt ) d->selectWeek = new QComboBox(this); d->selectWeek->setEditable(false); // read only week selection d->todayButton = new QToolButton(this); - d->todayButton->setIcon(SmallIconSet("today")); + d->todayButton->setIcon(KIcon("today")); yearForward->setToolTip(i18n("Next year")); yearBackward->setToolTip(i18n("Previous year")); @@ -162,17 +162,17 @@ void ExtDatePicker::init( const ExtDate &dt ) line->installEventFilter( this ); if ( QApplication::isRightToLeft() ) { - yearForward->setIcon(BarIconSet(QLatin1String("2leftarrow"))); - yearBackward->setIcon(BarIconSet(QLatin1String("2rightarrow"))); - monthForward->setIcon(BarIconSet(QLatin1String("1leftarrow"))); - monthBackward->setIcon(BarIconSet(QLatin1String("1rightarrow"))); + yearForward->setIcon(KIcon(QLatin1String("2leftarrow"))); + yearBackward->setIcon(KIcon(QLatin1String("2rightarrow"))); + monthForward->setIcon(KIcon(QLatin1String("1leftarrow"))); + monthBackward->setIcon(KIcon(QLatin1String("1rightarrow"))); } else { - yearForward->setIcon(BarIconSet(QLatin1String("2rightarrow"))); - yearBackward->setIcon(BarIconSet(QLatin1String("2leftarrow"))); - monthForward->setIcon(BarIconSet(QLatin1String("1rightarrow"))); - monthBackward->setIcon(BarIconSet(QLatin1String("1leftarrow"))); + yearForward->setIcon(KIcon(QLatin1String("2rightarrow"))); + yearBackward->setIcon(KIcon(QLatin1String("2leftarrow"))); + monthForward->setIcon(KIcon(QLatin1String("1rightarrow"))); + monthBackward->setIcon(KIcon(QLatin1String("1leftarrow"))); } connect(table, SIGNAL(dateChanged(const ExtDate&)), SLOT(dateChangedSlot(const ExtDate&))); connect(table, SIGNAL(tableClicked()), SLOT(tableClickedSlot())); @@ -511,7 +511,7 @@ ExtDatePicker::setCloseButton( bool enable ) d->navigationLayout->addSpacing(KDialog::spacingHint()); d->navigationLayout->addWidget(d->closeButton); d->closeButton->setToolTip(i18n("Close")); - d->closeButton->setIcon( SmallIconSet("remove") ); + d->closeButton->setIcon( KIcon("remove") ); connect( d->closeButton, SIGNAL( clicked() ), topLevelWidget(), SLOT( close() ) ); } -- 2.47.3