1 Star 0 Fork 1.5K

lineCodeJm / ndd

forked from 爬山虎 / ndd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
optionsview.cpp 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
#include "optionsview.h"
#include "doctypelistview.h"
#include "texteditsetwin.h"
#include "ccnotepad.h"
OptionsView::OptionsView(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
DocTypeListView* p = new DocTypeListView(this);
//p->show();
ui.stackedWidget->addWidget(p);
//文件关联 file correlation
ui.optionListWidget->addItem(tr("File Correlation"));
ui.optionListWidget->addItem(tr("Compare File Types"));
TextEditSetWin* p2 = new TextEditSetWin(this);
ui.stackedWidget->addWidget(p2);
ui.optionListWidget->addItem(tr("Text And Fonts"));
connect(ui.optionListWidget, &QListWidget::currentRowChanged, this, &OptionsView::slot_curRowChanged);
connect(p2, &TextEditSetWin::sendTabFormatChange, this, &OptionsView::sendTabFormatChange);
connect(p2, &TextEditSetWin::signProLangFontChange, this, &OptionsView::signProLangFontChange);
}
OptionsView::~OptionsView()
{
}
void OptionsView::slot_curRowChanged(int row)
{
if (row < ui.stackedWidget->count())
{
ui.stackedWidget->setCurrentIndex(row);
}
}
void OptionsView::slot_ok()
{
close();
}
C++
1
https://gitee.com/lineCodeJm/notepad--.git
git@gitee.com:lineCodeJm/notepad--.git
lineCodeJm
notepad--
ndd
master

搜索帮助