mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +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
|
||||
|
||||
@@ -4,7 +4,7 @@ include (../../build.pri)
|
||||
QT += core dbus gui svg network xml multimedia
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
TARGET = sample_blackgui
|
||||
TARGET = swiftgui_std
|
||||
TEMPLATE = app
|
||||
|
||||
SOURCES += *.cpp
|
||||
|
||||
Reference in New Issue
Block a user