mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-07-03 00:53:18 -04:00
Implement a user option to set font sizes.
Updates to User's Guide. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3501 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+11
-3
@@ -40,7 +40,9 @@ QString Program_Title_Version=" WSJT-X v1.1, r" + rev.mid(6,4) +
|
||||
|
||||
//-------------------------------------------------- MainWindow constructor
|
||||
// Multiple instances: new arg *thekey
|
||||
MainWindow::MainWindow(QSharedMemory *shdmem, QString *thekey, QWidget *parent) :
|
||||
MainWindow::MainWindow(QSharedMemory *shdmem, QString *thekey, \
|
||||
qint32 fontSize2, qint32 fontWeight2, \
|
||||
QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
ui(new Ui::MainWindow)
|
||||
{
|
||||
@@ -114,6 +116,12 @@ MainWindow::MainWindow(QSharedMemory *shdmem, QString *thekey, QWidget *parent)
|
||||
connect(ui->freeTextMsg, SIGNAL(customContextMenuRequested(const QPoint&)),
|
||||
this, SLOT(showMacros(const QPoint&)));
|
||||
|
||||
QFont font=ui->decodedTextBrowser->font();
|
||||
font.setPointSize(fontSize2);
|
||||
font.setWeight(fontWeight2);
|
||||
ui->decodedTextBrowser->setFont(font);
|
||||
ui->decodedTextBrowser2->setFont(font);
|
||||
|
||||
QTimer *guiTimer = new QTimer(this);
|
||||
connect(guiTimer, SIGNAL(timeout()), this, SLOT(guiUpdate()));
|
||||
guiTimer->start(100); //Don't change the 100 ms!
|
||||
@@ -320,8 +328,8 @@ MainWindow::MainWindow(QSharedMemory *shdmem, QString *thekey, QWidget *parent)
|
||||
if(ui->actionAFMHot->isChecked()) on_actionAFMHot_triggered();
|
||||
if(ui->actionBlue->isChecked()) on_actionBlue_triggered();
|
||||
|
||||
ui->decodedTextLabel->setFont(ui->decodedTextBrowser2->font());
|
||||
ui->decodedTextLabel2->setFont(ui->decodedTextBrowser->font());
|
||||
ui->decodedTextLabel->setFont(ui->decodedTextBrowser->font());
|
||||
ui->decodedTextLabel2->setFont(ui->decodedTextBrowser2->font());
|
||||
t="UTC dB DT Freq Message";
|
||||
ui->decodedTextLabel->setText(t);
|
||||
ui->decodedTextLabel2->setText(t);
|
||||
|
||||
Reference in New Issue
Block a user