17 mLeftBorder(new
QFrame(this)),
18 mIconLabel(new
QLabel(this)),
19 mTextLabel(new
QLabel(this)),
20 mRightBorder(new
QFrame(this)),
21 mLevel(levl), mHover(false), mSelected(false)
44 const char* iconList[] = {
"style",
"eye",
48 "selec",
"gen-window",
49 "appea",
"preferences",
50 "exper",
"preferences",
58 while ( (key=iconList[i++]) )
59 retval[key] =
QString(
":/icons/%1").
arg(iconList[i++]);
89 return mTextLabel->
text();
141 if (mIconStyle ==
style)
150 if (mIconPath == path)
160 if (iconPath.
isEmpty()) iconPath =
":/icons/python";
QIcon getStyledSvgIcon(const QString &from_to_colors_enabled, const QString &svg_path, QString from_to_colors_disabled=QString())
void setSpacing(int spacing)
virtual bool event(QEvent *e) override
void setFrameStyle(int style)
const T value(const Key &key) const const
void setPixmap(const QPixmap &)
void setContentsMargins(int left, int top, int right, int bottom)
void setObjectName(const QString &name)
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
bool isEmpty() const const
QString left(int n) const const
QString toLower() const const
virtual void polish(QWidget *widget)
virtual void unpolish(QWidget *widget)