本文整理汇总了C++中ApplicationWindow::changeAppFont方法的典型用法代码示例。如果您正苦于以下问题:C++ ApplicationWindow::changeAppFont方法的具体用法?C++ ApplicationWindow::changeAppFont怎么用?C++ ApplicationWindow::changeAppFont使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ApplicationWindow
的用法示例。
在下文中一共展示了ApplicationWindow::changeAppFont方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: update
void configDialog::update()
{
ApplicationWindow *app = (ApplicationWindow *)parentWidget();
if (!app)
return;
if (generalDialog->visibleWidget()==(QWidget*)tables)
{
QString sep = boxSeparator->currentText();
sep.replace(tr("TAB"), "\t", false);
sep.replace("\\t", "\t");
sep.replace(tr("SPACE"), " ");
sep.replace("\\s", " ");
if (sep.contains(QRegExp("[0-9.eE+-]"))!=0)
{
QMessageBox::warning(0, tr("QtiPlot - Import options error"),
tr("The separator must not contain the following characters: 0-9eE.+-"));
return;
}
app->columnSeparator = sep;
app->customizeTables(buttonBackground->color(), buttonText->color(),
buttonHeader->color(), textFont, headerFont);
}
else if (generalDialog->visibleWidget() == plotsTabWidget)
{
if (plotsTabWidget->currentPage() == plots)
{
app->titleOn=boxTitle->isChecked();
app->allAxesOn = boxAllAxes->isChecked();
app->canvasFrameOn=boxFrame->isChecked();
app->canvasFrameWidth = boxFrameWidth->value();
app->drawBackbones = boxBackbones->isChecked();
app->axesLineWidth = boxLinewidth->value();
app->defaultPlotMargin = boxMargin->value();
app->setGraphDefaultSettings(boxAutoscaling->isChecked(),boxScaleFonts->isChecked(),boxResize->isChecked());
}
else if (plotsTabWidget->currentPage() == curves)
{
app->defaultCurveStyle = curveStyle();
app->defaultCurveLineWidth = boxCurveLineWidth->value();
app->defaultSymbolSize = boxSymbolSize->value();
}
else if (plotsTabWidget->currentPage() == plotTicks)
{
app->majTicksLength = boxMajTicksLength->value();
app->minTicksLength = boxMinTicksLength->value();
app->majTicksStyle = boxMajTicks->currentItem();
app->minTicksStyle = boxMinTicks->currentItem();
}
else if (plotsTabWidget->currentPage() == plotFonts)
{
app->plotAxesFont=axesFont;
app->plotNumbersFont=numbersFont;
app->plotLegendFont=legendFont;
app->plotTitleFont=titleFont;
}
}
else if (generalDialog->visibleWidget()==(QWidget*)appTabWidget)
{
if (appTabWidget->currentPage() == application)
{
app->changeAppFont(appFont);
setFont(appFont);
app->changeAppStyle(boxStyle->currentText());
app->autoSearchUpdates = boxSearchUpdates->isChecked();
app->setSaveSettings(boxSave->isChecked(), boxMinutes->value());
app->defaultScriptingLang = boxScriptingLanguage->currentText();
}
else if (appTabWidget->currentPage() == confirm)
{
app->confirmCloseFolder = boxFolders->isChecked();
app->updateConfirmOptions(boxTables->isChecked(), boxMatrixes->isChecked(),
boxPlots2D->isChecked(), boxPlots3D->isChecked(),
boxNotes->isChecked());
}
else if (appTabWidget->currentPage() == appColors)
app->setAppColors(btnWorkspace->color(), btnPanels->color(), btnPanelsText->color());
}
else if (generalDialog->visibleWidget()==(QWidget*)plots3D)
{
app->plot3DColors = plot3DColors;
app->showPlot3DLegend = boxShowLegend->isChecked();
app->showPlot3DProjection = boxShowProjection->isChecked();
app->plot3DResolution = boxResolution->value();
app->plot3DTitleFont = plot3DTitleFont;
app->plot3DNumbersFont = plot3DNumbersFont;
app->plot3DAxesFont = plot3DAxesFont;
if (app->smooth3DMesh != boxSmoothMesh->isChecked())
{
app->smooth3DMesh = boxSmoothMesh->isChecked();
app->setPlot3DOptions();
}
}
else if (generalDialog->visibleWidget()==(QWidget*)fitPage)
{
app->fit_output_precision = boxPrecision->value();
//.........这里部分代码省略.........