include kicon.h

This commit is contained in:
Torgny Nyblom 2012-02-10 18:52:57 +01:00
parent 585976ebbc
commit 8f6075ac7c
4 changed files with 2 additions and 14 deletions

View File

@ -40,6 +40,7 @@
#include <kmimetype.h>
#include <kshortcutsdialog.h>
#include <kwindowsystem.h>
#include <kicon.h>
#include "abstractdialogmanager.h"
#include "abstracttoolbox.h"

View File

@ -26,6 +26,7 @@
#include <kdesktopfile.h>
#include <kmessagebox.h>
#include <kzip.h>
#include <kicon.h>
#include "config-plasma.h"

View File

@ -296,11 +296,6 @@ void PushButton::setIcon(const QIcon &icon)
nativeWidget()->setIcon(icon);
}
void PushButton::setIcon(const QIcon &icon)
{
setIcon(KIcon(icon));
}
QIcon PushButton::icon() const
{
return nativeWidget()->icon();

View File

@ -119,15 +119,6 @@ public:
*/
QAction *action() const;
/**
* sets the icon for this push button
*
* @param icon the icon to use
*
* @since 4.3
*/
void setIcon(const QIcon &icon);
/**
* sets the icon for this push button using a KIcon
*