version 2.32.0
work with icons - remove unused, organize and update to last oxygen add BusyIcon widget
This commit is contained in:
66
libs/widgets/plugin/busy_iconplugin.cpp
Normal file
66
libs/widgets/plugin/busy_iconplugin.cpp
Normal file
@@ -0,0 +1,66 @@
|
||||
#include "busy_iconplugin.h"
|
||||
|
||||
#include "busy_icon.h"
|
||||
|
||||
#include <QtCore/QtPlugin>
|
||||
|
||||
|
||||
BusyIconPlugin::BusyIconPlugin(QObject * parent): QObject(parent) {
|
||||
m_initialized = false;
|
||||
}
|
||||
|
||||
|
||||
void BusyIconPlugin::initialize(QDesignerFormEditorInterface * /* core */) {
|
||||
if (m_initialized) return;
|
||||
m_initialized = true;
|
||||
}
|
||||
|
||||
|
||||
bool BusyIconPlugin::isInitialized() const {
|
||||
return m_initialized;
|
||||
}
|
||||
|
||||
|
||||
QWidget * BusyIconPlugin::createWidget(QWidget * parent) {
|
||||
return new BusyIcon(parent);
|
||||
}
|
||||
|
||||
|
||||
QString BusyIconPlugin::name() const {
|
||||
return QLatin1String("BusyIcon");
|
||||
}
|
||||
|
||||
|
||||
QString BusyIconPlugin::group() const {
|
||||
return QLatin1String("Display Widgets");
|
||||
}
|
||||
|
||||
|
||||
QIcon BusyIconPlugin::icon() const {
|
||||
return QIcon(":/icons/widgets/busy-icon.png");
|
||||
}
|
||||
|
||||
|
||||
QString BusyIconPlugin::toolTip() const {
|
||||
return QLatin1String("Busy indicator");
|
||||
}
|
||||
|
||||
|
||||
QString BusyIconPlugin::whatsThis() const {
|
||||
return QLatin1String("Busy indicator");
|
||||
}
|
||||
|
||||
|
||||
bool BusyIconPlugin::isContainer() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
QString BusyIconPlugin::domXml() const {
|
||||
return QLatin1String("<widget class=\"BusyIcon\" name=\"iconBusy\">\n</widget>\n");
|
||||
}
|
||||
|
||||
|
||||
QString BusyIconPlugin::includeFile() const {
|
||||
return QLatin1String("busy_icon.h");
|
||||
}
|
||||
Reference in New Issue
Block a user