代码拉取完成,页面将自动刷新
同步操作将从 softxing/Xiasl 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#include "minidialog.h"
#include <QLabel>
#include "ui_minidialog.h"
extern QsciScintilla* miniDlgEdit;
extern miniDialog* miniDlg;
extern int red;
ZoomEditor::ZoomEditor(QWidget* parent) : QsciScintilla(parent) {}
miniDialog::miniDialog(QWidget* parent)
: QDialog(parent), ui(new Ui::miniDialog) {
ui->setupUi(this);
setWindowFlags(Qt::FramelessWindowHint);
ui->gridLayout_2->setMargin(0);
miniDlgEdit = new ZoomEditor(this);
ui->gridLayout->addWidget(miniDlgEdit);
QLabel *lblTip = new QLabel(miniDlgEdit);
lblTip->setText(tr("Left click: Position to the current line.") + "\n"
+ tr("Right click: Copy the current line."));
QColor color;
if (red > 55)
color.setRgb(245, 245, 245, 255);
else
color.setRgb(50, 50, 50, 255);
miniDlgEdit->setPaper(color);
miniDlgEdit->setContextMenuPolicy(Qt::NoContextMenu);
miniDlgEdit->setMarginWidth(0, 0);
miniDlgEdit->setMargins(0);
miniDlgEdit->setReadOnly(1);
miniDlgEdit->SendScintilla(QsciScintillaBase::SCI_SETCURSOR, 0, 7);
//水平滚动棒
miniDlgEdit->SendScintilla(QsciScintilla::SCI_SETSCROLLWIDTH, -1);
miniDlgEdit->SendScintilla(QsciScintilla::SCI_SETSCROLLWIDTHTRACKING, false);
miniDlgEdit->horizontalScrollBar()->setHidden(true);
miniDlgEdit->verticalScrollBar()->setHidden(true);
}
miniDialog::~miniDialog() { delete ui; }
void ZoomEditor::mouseMoveEvent(QMouseEvent* event) {
Q_UNUSED(event);
miniDlg->close();
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。