parent
591cc45c17
commit
c61e6327b6
|
@ -2,5 +2,5 @@
|
|||

|
||||
Linux 平台基于 Qt 的文字编辑程序。
|
||||
已编译好的 HTYEdit 程序适用 64 位 Linux 系统 Qt5 环境,双击运行,其他版本请自行编译。
|
||||
###1.1 [新增语法高亮](http://www.cnblogs.com/lenxvp/p/5475931.html)
|
||||
### 1.1 [新增语法高亮](http://www.cnblogs.com/lenxvp/p/5475931.html)
|
||||
高亮类具体工作过程没看懂,因为很好用先用着。
|
|
@ -301,8 +301,7 @@ void MainWindow::on_action_font_triggered()
|
|||
bool ok;
|
||||
qDebug() << ((QTextEdit*)(ui->mdiArea->currentSubWindow()->widget()))->currentFont();
|
||||
QFont font = QFontDialog::getFont(&ok, ((QTextEdit*)(ui->mdiArea->currentSubWindow()->widget()))->currentFont(), this, "选择字体");
|
||||
if(ok)
|
||||
{
|
||||
if(ok){
|
||||
((QTextEdit*)(ui->mdiArea->currentSubWindow()->widget()))->setCurrentFont(font);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue