refactor: remove unneeded setscheme from taskgroup
This commit is contained in:
@@ -22,8 +22,6 @@ TaskGroup::TaskGroup(QWidget *parent, bool hasHeader)
|
||||
setProperty("class", "content");
|
||||
setProperty("header", hasHeader ? "true" : "false");
|
||||
|
||||
setScheme(ActionPanelScheme::defaultScheme());
|
||||
|
||||
QVBoxLayout *vbl = new QVBoxLayout();
|
||||
vbl->setContentsMargins(4, 4, 4, 4);
|
||||
vbl->setSpacing(0);
|
||||
@@ -32,17 +30,6 @@ TaskGroup::TaskGroup(QWidget *parent, bool hasHeader)
|
||||
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum);
|
||||
}
|
||||
|
||||
void TaskGroup::setScheme(ActionPanelScheme *scheme)
|
||||
{
|
||||
if (scheme) {
|
||||
myScheme = scheme;
|
||||
|
||||
setStyleSheet(myScheme->actionStyle);
|
||||
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
bool TaskGroup::addActionLabel(ActionLabel *label, bool addToLayout, bool addStretch)
|
||||
{
|
||||
if (!label)
|
||||
|
||||
@@ -26,8 +26,6 @@ class TaskGroup : public QFrame
|
||||
public:
|
||||
TaskGroup(QWidget *parent, bool hasHeader = false);
|
||||
|
||||
void setScheme(ActionPanelScheme *scheme);
|
||||
|
||||
inline QBoxLayout* groupLayout()
|
||||
{
|
||||
return (QBoxLayout*)layout();
|
||||
|
||||
Reference in New Issue
Block a user