ui: Use window decorations on dialog windows (issue #376)
* added SubWindow flag to QtWindow to either use window decorations or show window within main window * fixes black borders in some Linux window managers bug id = 376 fortune cookie message = Your skill will accomplish what the force of many others cannot.
This commit is contained in:
@@ -26,7 +26,6 @@ QtLocationPicker::QtLocationPicker(QWidget *parent)
|
||||
m_data->setAttribute(Qt::WA_MacShowFocusRect, 0);
|
||||
m_data->setObjectName("locationField");
|
||||
layout->addWidget(m_data);
|
||||
connect(m_data, SIGNAL(focus()), this, SLOT(handleFocus()));
|
||||
|
||||
m_button = new QtIconButton(
|
||||
(ResourcePaths::getGuiPath().str() + "window/dots.png").c_str(),
|
||||
@@ -125,11 +124,3 @@ void QtLocationPicker::handleButtonPress()
|
||||
emit locationPicked();
|
||||
}
|
||||
}
|
||||
|
||||
void QtLocationPicker::handleFocus()
|
||||
{
|
||||
if (!m_data->text().size())
|
||||
{
|
||||
handleButtonPress();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user