forked from osmocom/wireshark
Fix [ 68%] Building CXX object ui/qt/CMakeFiles/qtui.dir/font_color_preferences_frame.cpp.o ui/qt/font_color_preferences_frame.cpp: In member function ‘void FontColorPreferencesFrame::updateWidgets()’: ui/qt/font_color_preferences_frame.cpp:84:54: error: ‘class QFont’ has no member named ‘styleName’ make[2]: *** [ui/qt/CMakeFiles/qtui.dir/font_color_preferences_frame.cpp.o] Erreur 1 make[1]: *** [ui/qt/CMakeFiles/qtui.dir/all] Error 2
StyleName is not available in Qt < 4.8 disable this line for the moment (maye be add if QTVERSION > 4.8 ?) svn path=/trunk/; revision=47409
This commit is contained in:
parent
be111f2192
commit
8afb6106f2
|
@ -81,7 +81,7 @@ void FontColorPreferencesFrame::updateWidgets()
|
|||
int margin = style()->pixelMetric(QStyle::PM_LayoutLeftMargin);
|
||||
|
||||
ui->fontPushButton->setText(
|
||||
cur_font_.family() + " " + cur_font_.styleName() + " " +
|
||||
cur_font_.family() + " "/* + cur_font_.styleName() + " "*/ +
|
||||
QString::number(cur_font_.pointSizeF(), 'f', 1));
|
||||
ui->fontSampleLineEdit->setFont(cur_font_);
|
||||
|
||||
|
|
Loading…
Reference in New Issue