0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-02 03:53:19 +03:00

Dark theme has been added

This commit is contained in:
Arin Alexander
2017-12-11 16:48:00 +03:00
parent 13c6386af6
commit 435074064b
14 changed files with 76 additions and 13 deletions

View File

@@ -1139,8 +1139,16 @@ void BaseDesignIntf::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
}
}
QWidget* findRootWidget(QWidget* widget){
while (widget->parentWidget()) {
widget = widget->parentWidget();
}
return widget;
}
void BaseDesignIntf::showEditorDialog(){
QWidget *editor = defaultEditor();
QWidget *editor = defaultEditor();
editor->setStyleSheet(findRootWidget(scene()->views().at(0))->styleSheet());
if (editor) {
#ifdef Q_OS_WIN