mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Several fixes related to refs #304
* removed #include <QtDesigner/QDesignerExportWidget>
* correct targets swiftcore / swiftgui
* Annotated possible error of QFontDialog / style sheet compliance
+ Set sizePolicy to preferred due to RWs rewiew ("over sized drawing")
This commit is contained in:
@@ -49,13 +49,14 @@ void MainWindow::ps_onMenuClicked()
|
||||
}
|
||||
else if (sender == this->ui->menu_FileFont)
|
||||
{
|
||||
// KB: There seems to be a bug with the font Dialog (Win 7/32), it only works once
|
||||
// Then the font cannot be changed anymore
|
||||
bool ok = false;
|
||||
QFont font = QFontDialog::getFont(&ok, this->font(), this, "Application fonts", QFontDialog::ProportionalFonts);
|
||||
qDebug() << font.toString();
|
||||
if (ok)
|
||||
{
|
||||
// the user clicked OK and font is set to the font the user selected
|
||||
// this->setFont(font);
|
||||
this->setFont(font);
|
||||
CStyleSheetUtility::instance().updateFonts(font);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user