remove titlebars from popup dialogs
This commit is contained in:
@@ -484,7 +484,6 @@ mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event)
|
||||
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
NodeGraphicsObject::
|
||||
contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
|
||||
|
||||
@@ -313,7 +313,7 @@ void BaseNode::captionDoubleClicked()
|
||||
bool ok;
|
||||
QString text = QInputDialog::getText(&_embedded_widget, "Rename node",
|
||||
"Node name", QLineEdit::Normal,
|
||||
_caption, &ok);
|
||||
_caption, &ok, Qt::Dialog | Qt::FramelessWindowHint);
|
||||
if (ok && !text.isEmpty())
|
||||
setCaption(text);
|
||||
}
|
||||
|
||||
@@ -71,7 +71,9 @@ public:
|
||||
|
||||
QWidget* default_widget(QWidget* parent) override
|
||||
{
|
||||
return D::generate(parent);
|
||||
QWidget* widget = D::generate(parent);
|
||||
widget->setAttribute(Qt::WA_NoSystemBackground);
|
||||
return widget;
|
||||
}
|
||||
|
||||
std::shared_ptr<NodeData> default_widget_data(QWidget* widget) override
|
||||
|
||||
@@ -212,7 +212,7 @@ void LogicBeginNode::portDoubleClicked(PortType port_type, PortIndex port_index)
|
||||
bool ok;
|
||||
QString text = QInputDialog::getText(&_embedded_widget, "Rename port",
|
||||
"Port name", QLineEdit::Normal,
|
||||
_out_ports[port_index].caption, &ok);
|
||||
_out_ports[port_index].caption, &ok, Qt::Dialog | Qt::FramelessWindowHint);
|
||||
if (ok && !text.isEmpty())
|
||||
_out_ports[port_index].caption = text;
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ void LogicReturnNode::portDoubleClicked(PortType port_type, PortIndex port_index
|
||||
bool ok;
|
||||
QString text = QInputDialog::getText(&_embedded_widget, "Rename port",
|
||||
"Port name", QLineEdit::Normal,
|
||||
_in_ports[port_index].caption, &ok);
|
||||
_in_ports[port_index].caption, &ok, Qt::Dialog | Qt::FramelessWindowHint);
|
||||
if (ok && !text.isEmpty())
|
||||
_in_ports[port_index].caption = text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user