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:
Klaus Basan
2014-08-04 02:21:41 +02:00
parent a7bb0f2e22
commit cb350d9086
8 changed files with 83 additions and 16 deletions

View File

@@ -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