Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit b61efc3f authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Pali Rohár

Port to KIconButton here too

parent b0c90208
......@@ -170,10 +170,10 @@ KopeteMetaLVIProps::KopeteMetaLVIProps(Kopete::MetaContact *metaContact, QWidget
ui_mainWidget = new Ui::KopeteMetaLVIPropsWidget;
ui_mainWidget->setupUi(mainWidget);
ui_mainWidget->icnbOffline->setIconSize(QSize(KIconLoader::SizeSmall, KIconLoader::SizeSmall));
ui_mainWidget->icnbOnline->setIconSize(QSize(KIconLoader::SizeSmall, KIconLoader::SizeSmall));
ui_mainWidget->icnbAway->setIconSize(QSize(KIconLoader::SizeSmall, KIconLoader::SizeSmall));
ui_mainWidget->icnbUnknown->setIconSize(QSize(KIconLoader::SizeSmall, KIconLoader::SizeSmall));
ui_mainWidget->icnbOffline->setIconSize(KIconLoader::SizeSmall);
ui_mainWidget->icnbOnline->setIconSize(KIconLoader::SizeSmall);
ui_mainWidget->icnbAway->setIconSize(KIconLoader::SizeSmall);
ui_mainWidget->icnbUnknown->setIconSize(KIconLoader::SizeSmall);
QPair<QString, QString> context = qMakePair(QStringLiteral("contact"), mMetaContact->metaContactId().toString());
mNotificationProps = new CustomNotificationProps(this, context);
......@@ -229,10 +229,10 @@ KopeteMetaLVIProps::KopeteMetaLVIProps(Kopete::MetaContact *metaContact, QWidget
if (unknownName.isEmpty()) {
unknownName = MC_UNK; // Default
}
// ui_mainWidget->icnbOffline->setIcon( offlineName );
// ui_mainWidget->icnbOnline->setIcon( onlineName );
// ui_mainWidget->icnbAway->setIcon( awayName );
// ui_mainWidget->icnbUnknown->setIcon( unknownName );
ui_mainWidget->icnbOffline->setIcon( offlineName );
ui_mainWidget->icnbOnline->setIcon( onlineName );
ui_mainWidget->icnbAway->setIcon( awayName );
ui_mainWidget->icnbUnknown->setIcon( unknownName );
ui_mainWidget->widAddresseeLink->setMetaContact(mMetaContact);
......@@ -513,7 +513,6 @@ void KopeteMetaLVIProps::slotOkClicked()
ui_mainWidget->chkUseCustomIcons->isChecked());
// only call setIcon if any of the icons is not set to default icon
/*
if(
ui_mainWidget->icnbOffline->icon() != MC_OFF ||
ui_mainWidget->icnbOnline->icon() != MC_ON ||
......@@ -532,7 +531,6 @@ void KopeteMetaLVIProps::slotOkClicked()
mMetaContact->setIcon( ui_mainWidget->icnbUnknown->icon(),
Kopete::ContactListElement::Unknown );
}
*/
mNotificationProps->storeCurrentCustoms();
}
......
......@@ -401,7 +401,7 @@
</widget>
</item>
<item row="1" column="1" >
<widget class="QPushButton" name="icnbOnline" >
<widget class="KIconButton" name="icnbOnline" >
<property name="text" >
<string/>
</property>
......@@ -418,7 +418,7 @@
</widget>
</item>
<item row="1" column="3" >
<widget class="QPushButton" name="icnbOffline" >
<widget class="KIconButton" name="icnbOffline" >
<property name="text" >
<string/>
</property>
......@@ -451,7 +451,7 @@
</widget>
</item>
<item row="2" column="1" >
<widget class="QPushButton" name="icnbAway" >
<widget class="KIconButton" name="icnbAway" >
<property name="text" >
<string/>
</property>
......@@ -468,7 +468,7 @@
</widget>
</item>
<item row="2" column="3" >
<widget class="QPushButton" name="icnbUnknown" >
<widget class="KIconButton" name="icnbUnknown" >
<property name="text" >
<string/>
</property>
......
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