- attempt to allow change the text font size
This commit is contained in:
parent
e1791d755f
commit
b45ed3067a
@ -1,2 +1,2 @@
|
||||
// Auto generated file ! Please do not edit !
|
||||
#define APP_BUILD_NUMBER 170
|
||||
#define APP_BUILD_NUMBER 177
|
||||
@ -264,6 +264,9 @@ void MainWindow::initClient()
|
||||
mTimeFrameHeight = 64;//ui->mTimeFrame->height();
|
||||
ui->mStartRecentTaskMenu->setEnabled(false);
|
||||
|
||||
// connect(ui->mIncreaseLevelAction, SIGNAL(triggered()), this, SLOT(onIncreaseFontSize()));
|
||||
// connect(ui->mDecreaseLevelAction, SIGNAL(triggered()), this, SLOT(onDecreaseFontSize()));
|
||||
|
||||
buildOpenOrCreateView();
|
||||
buildPasswordView();
|
||||
}
|
||||
@ -1724,3 +1727,15 @@ void MainWindow::showFatal(const QString& message)
|
||||
std::cerr << message.toStdString() << std::endl;
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
void MainWindow::onIncreaseFontSize()
|
||||
{
|
||||
QFont f = QApplication::font("QWidget");
|
||||
f.setPixelSize(f.pixelSize() + 1);
|
||||
QApplication::setFont(f, "QWidget");
|
||||
}
|
||||
|
||||
void MainWindow::onDecreaseFontSize()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@ -235,6 +235,9 @@ public slots:
|
||||
void onDbPasswordCancelled();
|
||||
void onNewDbPasswordEntered(const QString& password);
|
||||
void onDatabaseChanged(const QString& path);
|
||||
|
||||
void onIncreaseFontSize();
|
||||
void onDecreaseFontSize();
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1206</width>
|
||||
<height>522</height>
|
||||
<height>630</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
@ -734,6 +734,28 @@
|
||||
<string>Ctrl+Shift+Down</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mIncreaseFontSizeAction">
|
||||
<property name="text">
|
||||
<string>Increase font size</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Increase font size</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+=</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mDecreaseFontSize">
|
||||
<property name="text">
|
||||
<string>Decrease font size</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Decrease font size</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+-</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<customwidgets>
|
||||
@ -1296,6 +1318,38 @@
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>mIncreaseFontSizeAction</sender>
|
||||
<signal>triggered()</signal>
|
||||
<receiver>MainWindow</receiver>
|
||||
<slot>onIncreaseFontSize()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>602</x>
|
||||
<y>314</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>mDecreaseFontSize</sender>
|
||||
<signal>triggered()</signal>
|
||||
<receiver>MainWindow</receiver>
|
||||
<slot>onDecreaseFontSize()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>-1</x>
|
||||
<y>-1</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>602</x>
|
||||
<y>314</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
<slots>
|
||||
<slot>save()</slot>
|
||||
@ -1334,5 +1388,7 @@
|
||||
<slot>newSibling()</slot>
|
||||
<slot>moveUp()</slot>
|
||||
<slot>moveDown()</slot>
|
||||
<slot>onIncreaseFontSize()</slot>
|
||||
<slot>onDecreaseFontSize()</slot>
|
||||
</slots>
|
||||
</ui>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user