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:
@@ -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
|
||||
|
Reference in New Issue
Block a user