mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
plasma: remove stylesheet getters and setters
slowly but surely stylesheets feature will dissapear Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9bab635b46
commit
d21869a910
39 changed files with 3 additions and 450 deletions
|
@ -56,11 +56,6 @@ public:
|
|||
m_document->setDefaultTextOption(option);
|
||||
}
|
||||
|
||||
void setStyleSheet(const QString &css)
|
||||
{
|
||||
m_document->setDefaultStyleSheet(css);
|
||||
}
|
||||
|
||||
void setContent(const ToolTipContent &data)
|
||||
{
|
||||
QString html;
|
||||
|
|
|
@ -82,16 +82,6 @@ QDate CalendarWidget::selectedDate() const
|
|||
return nativeWidget()->selectedDate();
|
||||
}
|
||||
|
||||
void CalendarWidget::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString CalendarWidget::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
KCalendarWidget* CalendarWidget::nativeWidget() const
|
||||
{
|
||||
return static_cast<KCalendarWidget*>(widget());
|
||||
|
|
|
@ -42,7 +42,6 @@ class PLASMA_EXPORT CalendarWidget : public QGraphicsProxyWidget
|
|||
|
||||
Q_PROPERTY(QDate selectedDate READ selectedDate WRITE setSelectedDate)
|
||||
Q_PROPERTY(QGraphicsWidget *parentWidget READ parentWidget)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(KCalendarWidget *nativeWidget READ nativeWidget)
|
||||
|
||||
public:
|
||||
|
@ -61,18 +60,6 @@ public:
|
|||
*/
|
||||
void setSelectedDate(const QDate &date);
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this CalendarWidget
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* @return the native widget wrapped by this CalendarWidget
|
||||
*/
|
||||
|
|
|
@ -134,16 +134,6 @@ QString CheckBox::image() const
|
|||
return d->imagePath;
|
||||
}
|
||||
|
||||
void CheckBox::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString CheckBox::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
QCheckBox *CheckBox::nativeWidget() const
|
||||
{
|
||||
return static_cast<QCheckBox*>(widget());
|
||||
|
|
|
@ -43,7 +43,6 @@ class PLASMA_EXPORT CheckBox : public QGraphicsProxyWidget
|
|||
Q_PROPERTY(QGraphicsWidget *parentWidget READ parentWidget)
|
||||
Q_PROPERTY(QString text READ text WRITE setText)
|
||||
Q_PROPERTY(QString image READ image WRITE setImage)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(QCheckBox *nativeWidget READ nativeWidget)
|
||||
Q_PROPERTY(bool checked READ isChecked WRITE setChecked NOTIFY toggled)
|
||||
|
||||
|
@ -75,18 +74,6 @@ public:
|
|||
*/
|
||||
QString image() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this CheckBox
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* @return the native widget wrapped by this CheckBox
|
||||
*/
|
||||
|
|
|
@ -72,16 +72,6 @@ QString ComboBox::text() const
|
|||
return static_cast<KComboBox*>(widget())->currentText();
|
||||
}
|
||||
|
||||
void ComboBox::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString ComboBox::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
void ComboBox::setNativeWidget(KComboBox *nativeWidget)
|
||||
{
|
||||
if (widget()) {
|
||||
|
|
|
@ -20,12 +20,12 @@
|
|||
#ifndef PLASMA_COMBOBOX_H
|
||||
#define PLASMA_COMBOBOX_H
|
||||
|
||||
#include <plasma/plasma_export.h>
|
||||
|
||||
#include <QtGui/QGraphicsProxyWidget>
|
||||
|
||||
class KComboBox;
|
||||
|
||||
#include <plasma/plasma_export.h>
|
||||
|
||||
namespace Plasma
|
||||
{
|
||||
|
||||
|
@ -42,7 +42,6 @@ class PLASMA_EXPORT ComboBox : public QGraphicsProxyWidget
|
|||
|
||||
Q_PROPERTY(QGraphicsWidget *parentWidget READ parentWidget)
|
||||
Q_PROPERTY(QString text READ text NOTIFY textChanged)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(KComboBox *nativeWidget READ nativeWidget WRITE setNativeWidget)
|
||||
Q_PROPERTY(int count READ count)
|
||||
Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged)
|
||||
|
@ -56,18 +55,6 @@ public:
|
|||
*/
|
||||
QString text() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this ComboBox
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* Sets the combo box wrapped by this ComboBox (widget must inherit KComboBox), ownership is transferred to the ComboBox
|
||||
*
|
||||
|
|
|
@ -57,7 +57,6 @@ public:
|
|||
FrameSvg *svg;
|
||||
Frame::Shadow shadow;
|
||||
QString text;
|
||||
QString styleSheet;
|
||||
QString imagePath;
|
||||
QString absImagePath;
|
||||
Svg *image;
|
||||
|
@ -190,17 +189,6 @@ QString Frame::image() const
|
|||
return d->imagePath;
|
||||
}
|
||||
|
||||
void Frame::setStyleSheet(const QString &styleSheet)
|
||||
{
|
||||
//TODO: implement stylesheets painting
|
||||
d->styleSheet = styleSheet;
|
||||
}
|
||||
|
||||
QString Frame::styleSheet() const
|
||||
{
|
||||
return d->styleSheet;
|
||||
}
|
||||
|
||||
QWidget *Frame::nativeWidget() const
|
||||
{
|
||||
return 0;
|
||||
|
|
|
@ -46,7 +46,6 @@ class PLASMA_EXPORT Frame : public QGraphicsWidget
|
|||
Q_PROPERTY(Shadow frameShadow READ frameShadow WRITE setFrameShadow)
|
||||
Q_PROPERTY(QString text READ text WRITE setText)
|
||||
Q_PROPERTY(QString image READ image WRITE setImage)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_ENUMS(Shadow)
|
||||
|
||||
public:
|
||||
|
@ -114,18 +113,6 @@ public:
|
|||
*/
|
||||
QString image() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this Frame
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet() const;
|
||||
|
||||
/**
|
||||
* @return the native widget wrapped by this Frame
|
||||
*/
|
||||
|
|
|
@ -71,16 +71,6 @@ QString GroupBox::text() const
|
|||
return static_cast<QGroupBox*>(widget())->title();
|
||||
}
|
||||
|
||||
void GroupBox::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString GroupBox::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
QGroupBox *GroupBox::nativeWidget() const
|
||||
{
|
||||
return static_cast<QGroupBox*>(widget());
|
||||
|
|
|
@ -42,7 +42,6 @@ class PLASMA_EXPORT GroupBox : public QGraphicsProxyWidget
|
|||
|
||||
Q_PROPERTY(QGraphicsWidget *parentWidget READ parentWidget)
|
||||
Q_PROPERTY(QString text READ text WRITE setText)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(QGroupBox *nativeWidget READ nativeWidget)
|
||||
|
||||
public:
|
||||
|
@ -61,18 +60,6 @@ public:
|
|||
*/
|
||||
QString text() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this GroupBox
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* @return the native widget wrapped by this GroupBox
|
||||
*/
|
||||
|
|
|
@ -197,16 +197,6 @@ bool Label::wordWrap() const
|
|||
return nativeWidget()->wordWrap();
|
||||
}
|
||||
|
||||
void Label::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString Label::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
QLabel *Label::nativeWidget() const
|
||||
{
|
||||
return static_cast<QLabel*>(widget());
|
||||
|
|
|
@ -47,7 +47,6 @@ class PLASMA_EXPORT Label : public QGraphicsProxyWidget
|
|||
Q_PROPERTY(bool hasScaledContents READ hasScaledContents WRITE setScaledContents)
|
||||
Q_PROPERTY(bool textSelectable READ textSelectable WRITE setTextSelectable)
|
||||
Q_PROPERTY(bool wordWrap READ wordWrap WRITE setWordWrap)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(QLabel *nativeWidget READ nativeWidget)
|
||||
|
||||
public:
|
||||
|
@ -135,18 +134,6 @@ public:
|
|||
*/
|
||||
bool wordWrap() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this Label
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* @return the native widget wrapped by this Label
|
||||
*/
|
||||
|
|
|
@ -98,16 +98,6 @@ QString LineEdit::clickMessage() const
|
|||
return nativeWidget()->clickMessage();
|
||||
}
|
||||
|
||||
void LineEdit::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString LineEdit::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
void LineEdit::setNativeWidget(KLineEdit *nativeWidget)
|
||||
{
|
||||
if (widget()) {
|
||||
|
|
|
@ -44,7 +44,6 @@ class PLASMA_EXPORT LineEdit : public QGraphicsProxyWidget
|
|||
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
|
||||
Q_PROPERTY(bool clearButtonShown READ isClearButtonShown WRITE setClearButtonShown)
|
||||
Q_PROPERTY(QString clickMessage READ clickMessage WRITE setClickMessage)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(KLineEdit *nativeWidget READ nativeWidget WRITE setNativeWidget)
|
||||
|
||||
public:
|
||||
|
@ -89,18 +88,6 @@ public:
|
|||
*/
|
||||
QString clickMessage() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this LineEdit
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* Sets the line edit wrapped by this LineEdit (widget must inherit KLineEdit), ownership is transferred to the LineEdit
|
||||
*
|
||||
|
|
|
@ -171,16 +171,6 @@ QString PushButton::image() const
|
|||
return d->imagePath;
|
||||
}
|
||||
|
||||
void PushButton::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString PushButton::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
void PushButton::setAction(QAction *action)
|
||||
{
|
||||
d->setAction(action);
|
||||
|
|
|
@ -45,7 +45,6 @@ class PLASMA_EXPORT PushButton : public QGraphicsProxyWidget
|
|||
Q_PROPERTY(QGraphicsWidget *parentWidget READ parentWidget)
|
||||
Q_PROPERTY(QString text READ text WRITE setText)
|
||||
Q_PROPERTY(QString image READ image WRITE setImage)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(KPushButton *nativeWidget READ nativeWidget)
|
||||
Q_PROPERTY(QAction *action READ action WRITE setAction)
|
||||
Q_PROPERTY(QIcon icon READ icon WRITE setIcon)
|
||||
|
@ -91,18 +90,6 @@ public:
|
|||
*/
|
||||
QString image() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this PushButton
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* Associate an action with this IconWidget
|
||||
* this makes the button follow the state of the action, using its icon, text, etc.
|
||||
|
|
|
@ -123,16 +123,6 @@ QString RadioButton::image() const
|
|||
return d->imagePath;
|
||||
}
|
||||
|
||||
void RadioButton::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString RadioButton::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
QRadioButton *RadioButton::nativeWidget() const
|
||||
{
|
||||
return static_cast<QRadioButton*>(widget());
|
||||
|
|
|
@ -43,7 +43,6 @@ class PLASMA_EXPORT RadioButton : public QGraphicsProxyWidget
|
|||
Q_PROPERTY(QGraphicsWidget *parentWidget READ parentWidget)
|
||||
Q_PROPERTY(QString text READ text WRITE setText)
|
||||
Q_PROPERTY(QString image READ image WRITE setImage)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(QRadioButton *nativeWidget READ nativeWidget)
|
||||
Q_PROPERTY(bool checked READ isChecked WRITE setChecked NOTIFY toggled)
|
||||
|
||||
|
@ -75,18 +74,6 @@ public:
|
|||
*/
|
||||
QString image() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this RadioButton
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* @return the native widget wrapped by this RadioButton
|
||||
*/
|
||||
|
|
|
@ -113,16 +113,6 @@ void ScrollBar::setMaximum(const int max) const
|
|||
static_cast<QScrollBar*>(widget())->setMaximum(max);
|
||||
}
|
||||
|
||||
void ScrollBar::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString ScrollBar::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
QScrollBar *ScrollBar::nativeWidget() const
|
||||
{
|
||||
return static_cast<QScrollBar *>(widget());
|
||||
|
|
|
@ -45,7 +45,6 @@ class PLASMA_EXPORT ScrollBar : public QGraphicsProxyWidget
|
|||
Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged)
|
||||
Q_PROPERTY(int minimum READ minimum WRITE setMinimum)
|
||||
Q_PROPERTY(int maximum READ maximum WRITE setMaximum)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(QScrollBar *nativeWidget READ nativeWidget)
|
||||
Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation)
|
||||
|
||||
|
@ -114,18 +113,6 @@ public:
|
|||
*/
|
||||
void setMaximum(const int max) const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this ScrollBar
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* @return the native widget wrapped by this ScrollBar
|
||||
*/
|
||||
|
|
|
@ -1028,7 +1028,6 @@ public:
|
|||
Qt::ScrollBarPolicy verticalScrollBarPolicy;
|
||||
ScrollBar *horizontalScrollBar;
|
||||
Qt::ScrollBarPolicy horizontalScrollBarPolicy;
|
||||
QString styleSheet;
|
||||
QWeakPointer<QGraphicsWidget> widgetToBeVisible;
|
||||
QRectF rectToBeVisible;
|
||||
QTimer *wheelTimer;
|
||||
|
@ -1251,18 +1250,6 @@ QSizeF ScrollWidget::snapSize() const
|
|||
return d->snapSize;
|
||||
}
|
||||
|
||||
void ScrollWidget::setStyleSheet(const QString &styleSheet)
|
||||
{
|
||||
d->styleSheet = styleSheet;
|
||||
d->verticalScrollBar->setStyleSheet(styleSheet);
|
||||
d->horizontalScrollBar->setStyleSheet(styleSheet);
|
||||
}
|
||||
|
||||
QString ScrollWidget::styleSheet() const
|
||||
{
|
||||
return d->styleSheet;
|
||||
}
|
||||
|
||||
QWidget *ScrollWidget::nativeWidget() const
|
||||
{
|
||||
return 0;
|
||||
|
|
|
@ -51,7 +51,6 @@ class PLASMA_EXPORT ScrollWidget : public QGraphicsWidget
|
|||
Q_PROPERTY(QSizeF contentsSize READ contentsSize)
|
||||
Q_PROPERTY(QRectF viewportGeometry READ viewportGeometry)
|
||||
Q_PROPERTY(QSizeF snapSize READ snapSize WRITE setSnapSize)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment)
|
||||
Q_PROPERTY(bool overShoot READ hasOverShoot WRITE setOverShoot)
|
||||
|
||||
|
@ -205,18 +204,6 @@ public:
|
|||
*/
|
||||
QSizeF snapSize() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this ScrollWidget
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet() const;
|
||||
|
||||
/**
|
||||
* @return the native widget wrapped by this ScrollWidget
|
||||
*/
|
||||
|
|
|
@ -117,16 +117,6 @@ Qt::Orientation Slider::orientation() const
|
|||
return static_cast<QSlider*>(widget())->orientation();
|
||||
}
|
||||
|
||||
void Slider::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString Slider::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
QSlider *Slider::nativeWidget() const
|
||||
{
|
||||
return static_cast<QSlider*>(widget());
|
||||
|
|
|
@ -45,7 +45,6 @@ class PLASMA_EXPORT Slider : public QGraphicsProxyWidget
|
|||
Q_PROPERTY(int minimum READ minimum WRITE setMinimum)
|
||||
Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged)
|
||||
Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(QSlider *nativeWidget READ nativeWidget)
|
||||
|
||||
public:
|
||||
|
@ -72,18 +71,6 @@ public:
|
|||
*/
|
||||
Qt::Orientation orientation() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this Slider
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* @return the native widget wrapped by this Slider
|
||||
*/
|
||||
|
|
|
@ -104,16 +104,6 @@ int SpinBox::value() const
|
|||
return static_cast<KIntSpinBox*>(widget())->value();
|
||||
}
|
||||
|
||||
void SpinBox::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString SpinBox::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
KIntSpinBox *SpinBox::nativeWidget() const
|
||||
{
|
||||
return static_cast<KIntSpinBox*>(widget());
|
||||
|
|
|
@ -45,7 +45,6 @@ class PLASMA_EXPORT SpinBox : public QGraphicsProxyWidget
|
|||
Q_PROPERTY(int maximum READ maximum WRITE setMinimum)
|
||||
Q_PROPERTY(int minimum READ minimum WRITE setMinimum)
|
||||
Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(KIntSpinBox *nativeWidget READ nativeWidget)
|
||||
|
||||
public:
|
||||
|
@ -67,18 +66,6 @@ public:
|
|||
*/
|
||||
int value() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this SpinBox
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* @return the native widget wrapped by this SpinBox
|
||||
*/
|
||||
|
|
|
@ -573,16 +573,6 @@ bool TabBar::isTabBarShown() const
|
|||
return d->tabBarShown;
|
||||
}
|
||||
|
||||
void TabBar::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
d->tabProxy->native->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString TabBar::styleSheet() const
|
||||
{
|
||||
return d->tabProxy->native->styleSheet();
|
||||
}
|
||||
|
||||
void TabBar::setTabHighlighted(int index, bool highlight)
|
||||
{
|
||||
d->tabProxy->native->setTabHighlighted(index, highlight);
|
||||
|
|
|
@ -50,7 +50,6 @@ class PLASMA_EXPORT TabBar : public QGraphicsWidget
|
|||
Q_PROPERTY(KTabBar *nativeWidget READ nativeWidget)
|
||||
Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentChanged)
|
||||
Q_PROPERTY(int count READ count)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(bool tabBarShown READ isTabBarShown WRITE setTabBarShown)
|
||||
Q_PROPERTY(QGraphicsWidget *firstPositionWidget READ firstPositionWidget WRITE setFirstPositionWidget)
|
||||
Q_PROPERTY(QGraphicsWidget *lastPositionWidget READ lastPositionWidget WRITE setLastPositionWidget)
|
||||
|
@ -192,18 +191,6 @@ public:
|
|||
*/
|
||||
bool isTabBarShown() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this TabBar
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet() const;
|
||||
|
||||
/**
|
||||
* Highlight the specified tab
|
||||
* @param index of the tab to highlight
|
||||
|
|
|
@ -120,16 +120,6 @@ void TextBrowser::setVerticalScrollBarPolicy(Qt::ScrollBarPolicy policy)
|
|||
nativeWidget()->setVerticalScrollBarPolicy(policy);
|
||||
}
|
||||
|
||||
void TextBrowser::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString TextBrowser::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
QTextBrowser *TextBrowser::nativeWidget() const
|
||||
{
|
||||
return static_cast<QTextBrowser*>(widget());
|
||||
|
|
|
@ -43,7 +43,6 @@ class PLASMA_EXPORT TextBrowser : public QGraphicsProxyWidget
|
|||
|
||||
Q_PROPERTY(QGraphicsWidget *parentWidget READ parentWidget)
|
||||
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(QTextBrowser *nativeWidget READ nativeWidget)
|
||||
|
||||
public:
|
||||
|
@ -72,18 +71,6 @@ public:
|
|||
*/
|
||||
void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy policy);
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this TextBrowser
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* @return the native widget wrapped by this TextBrowser
|
||||
*/
|
||||
|
|
|
@ -83,16 +83,6 @@ bool TextEdit::isReadOnly() const
|
|||
return static_cast<KTextEdit*>(widget())->isReadOnly();
|
||||
}
|
||||
|
||||
void TextEdit::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString TextEdit::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
void TextEdit::setNativeWidget(KTextEdit *nativeWidget)
|
||||
{
|
||||
if (widget()) {
|
||||
|
|
|
@ -42,7 +42,6 @@ class PLASMA_EXPORT TextEdit : public QGraphicsProxyWidget
|
|||
|
||||
Q_PROPERTY(QGraphicsWidget *parentWidget READ parentWidget)
|
||||
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(KTextEdit *nativeWidget READ nativeWidget WRITE setNativeWidget)
|
||||
Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly)
|
||||
|
||||
|
@ -74,18 +73,6 @@ public:
|
|||
*/
|
||||
bool isReadOnly() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this TextEdit
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* Sets the text edit wrapped by this TextEdit (widget must inherit KTextEdit), ownership is transferred to the TextEdit
|
||||
*
|
||||
|
|
|
@ -284,16 +284,6 @@ bool ToolButton::isDown() const
|
|||
return nativeWidget()->isDown();
|
||||
}
|
||||
|
||||
void ToolButton::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString ToolButton::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
QToolButton *ToolButton::nativeWidget() const
|
||||
{
|
||||
return static_cast<QToolButton*>(widget());
|
||||
|
@ -326,7 +316,7 @@ void ToolButton::paint(QPainter *painter,
|
|||
const QStyleOptionGraphicsItem *option,
|
||||
QWidget *widget)
|
||||
{
|
||||
if (!styleSheet().isNull() || Theme::defaultTheme()->useNativeWidgetStyle()) {
|
||||
if (Theme::defaultTheme()->useNativeWidgetStyle()) {
|
||||
QGraphicsProxyWidget::paint(painter, option, widget);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -44,7 +44,6 @@ class PLASMA_EXPORT ToolButton : public QGraphicsProxyWidget
|
|||
Q_PROPERTY(QString text READ text WRITE setText)
|
||||
Q_PROPERTY(bool autoRaise READ autoRaise WRITE setAutoRaise)
|
||||
Q_PROPERTY(QString image READ image WRITE setImage)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(QToolButton *nativeWidget READ nativeWidget)
|
||||
Q_PROPERTY(QAction *action READ action WRITE setAction)
|
||||
Q_PROPERTY(bool down READ isDown WRITE setDown)
|
||||
|
@ -115,18 +114,6 @@ public:
|
|||
*/
|
||||
bool isDown() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this ToolButton
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* Associate an action with this IconWidget
|
||||
* this makes the button follow the state of the action, using its icon, text, etc.
|
||||
|
|
|
@ -67,16 +67,6 @@ QAbstractItemModel *TreeView::model()
|
|||
return nativeWidget()->model();
|
||||
}
|
||||
|
||||
void TreeView::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString TreeView::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
QTreeView *TreeView::nativeWidget() const
|
||||
{
|
||||
return static_cast<QTreeView*>(widget());
|
||||
|
|
|
@ -43,7 +43,6 @@ class PLASMA_EXPORT TreeView : public QGraphicsProxyWidget
|
|||
|
||||
Q_PROPERTY(QAbstractItemModel *model READ model WRITE setModel)
|
||||
Q_PROPERTY(QGraphicsWidget *parentWidget READ parentWidget)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(QTreeView *nativeWidget READ nativeWidget)
|
||||
|
||||
public:
|
||||
|
@ -62,18 +61,6 @@ public:
|
|||
*/
|
||||
QAbstractItemModel *model();
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this TreeView
|
||||
*
|
||||
* @param stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* @return the native widget wrapped by this TreeView
|
||||
*/
|
||||
|
|
|
@ -133,16 +133,6 @@ QString <Name>::image() const
|
|||
return d->imagePath;
|
||||
}
|
||||
|
||||
void <Name>::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
widget()->setStyleSheet(stylesheet);
|
||||
}
|
||||
|
||||
QString <Name>::styleSheet()
|
||||
{
|
||||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
<Native>* <Name>::nativeWidget() const
|
||||
{
|
||||
return static_cast<<Native>*>(widget());
|
||||
|
|
|
@ -43,7 +43,6 @@ class PLASMA_EXPORT <Name> : public QGraphicsProxyWidget
|
|||
Q_PROPERTY(QGraphicsWidget *parentWidget READ parentWidget)
|
||||
Q_PROPERTY(QString text READ text WRITE setText)
|
||||
Q_PROPERTY(QString image READ image WRITE setImage)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_PROPERTY(<Native>* nativeWidget READ nativeWidget)
|
||||
|
||||
public:
|
||||
|
@ -74,18 +73,6 @@ public:
|
|||
*/
|
||||
QString image() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this <Name>
|
||||
*
|
||||
* @arg stylesheet a CSS string
|
||||
*/
|
||||
void setStyleSheet(const QString &stylesheet);
|
||||
|
||||
/**
|
||||
* @return the stylesheet currently used with this widget
|
||||
*/
|
||||
QString styleSheet();
|
||||
|
||||
/**
|
||||
* @return the native widget wrapped by this <Name>
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue