diff options
author | akshay-c | 2019-05-07 10:50:36 +0530 |
---|---|---|
committer | akshay-c | 2019-05-07 10:50:36 +0530 |
commit | f6250bab468eadfc020922040966d6ba75edd341 (patch) | |
tree | 7facc6d3fd89c0c23bce197ca9eb67fd2b20a185 /ldmicro/helpdialog.cpp | |
parent | 46fbe3ae31bb5687f31b17acac4c449699876f2f (diff) | |
download | LDmicroQt-f6250bab468eadfc020922040966d6ba75edd341.tar.gz LDmicroQt-f6250bab468eadfc020922040966d6ba75edd341.tar.bz2 LDmicroQt-f6250bab468eadfc020922040966d6ba75edd341.zip |
Uncommented Titlebar Update Calls at places; Code beautification and code cleaning
Diffstat (limited to 'ldmicro/helpdialog.cpp')
-rw-r--r-- | ldmicro/helpdialog.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/ldmicro/helpdialog.cpp b/ldmicro/helpdialog.cpp index baf1389..3df325d 100644 --- a/ldmicro/helpdialog.cpp +++ b/ldmicro/helpdialog.cpp @@ -119,18 +119,15 @@ static void MakeControls(int a) qtfont.setFamily(FixedWidthFont->lpszFace); qtfont.setPixelSize(FixedWidthFont->nHeight - 3); qtfont.setFixedPitch(TRUE); - qtfont.setStyle(FixedWidthFont->fdwItalic ? QFont::StyleItalic : QFont::StyleNormal); - qtfont.setWeight(FixedWidthFont->fnWeight == FW_BOLD ? QFont::Bold : QFont::Normal); - // hcr->setFont(qtfont); + qtfont.setStyle(FixedWidthFont->fdwItalic ? + QFont::StyleItalic : QFont::StyleNormal); + qtfont.setWeight(FixedWidthFont->fnWeight == FW_BOLD ? + QFont::Bold : QFont::Normal); for(i = 0; Text[a][i]; i++) { char *s = Text[a][i]; - // f.setBold(TRUE); cf.setFontWeight(cf.fontWeight()* 2); cf.setFont(qtfont); - /*RichEdit[a]->appendPlainText("Welcome"); - RichEdit[a]->setCurrentCharFormat(cf); - RichEdit[a]->appendPlainText("Thank you");*/ if((s[0] == '=') || (Text[a][i+1] && Text[a][i+1][0] == '=')) { @@ -193,8 +190,6 @@ void ShowHelpDialog(BOOL about) MakeControls(a); - // PackBoxHelp = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); - // gtk_box_pack_start(GTK_BOX(PackBoxHelp), RichEdit[a], FALSE, TRUE, 0); QVBoxLayout* PackBoxHelp = new QVBoxLayout; PackBoxHelp->addWidget(RichEdit[a]); HelpDialog[a] = new QDialog(MainWindow); @@ -206,9 +201,5 @@ void ShowHelpDialog(BOOL about) RichEdit[a]->verticalScrollBar()->setValue( RichEdit[a]->verticalScrollBar()->minimum()); - /*if(HelpWindowOpen[a]) { - gtk_widget_grab_focus (HelpDialog[a]); - return; - }*/ HelpWindowOpen[a] = TRUE; } |