From c426a46cfca7102ba1df3df69584f2bb17907111 Mon Sep 17 00:00:00 2001 From: textbrowser Date: Sun, 17 Mar 2024 13:36:44 -0400 Subject: [PATCH] Source preview. --- Source/glitch-source-preview.cc | 1 + UI/glitch-source-preview.ui | 21 +++++++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/Source/glitch-source-preview.cc b/Source/glitch-source-preview.cc index 5db5e825..bf5fb1fd 100644 --- a/Source/glitch-source-preview.cc +++ b/Source/glitch-source-preview.cc @@ -32,6 +32,7 @@ glitch_source_preview::glitch_source_preview(QWidget *parent):QDialog(parent) { m_ui.setupUi(this); + m_ui.close->setShortcut(tr("Ctrl+W")); m_syntaxHighlighter = new glitch_syntax_highlighter(m_ui.text->document()); setWindowModality(Qt::NonModal); } diff --git a/UI/glitch-source-preview.ui b/UI/glitch-source-preview.ui index 947956b5..baea4703 100644 --- a/UI/glitch-source-preview.ui +++ b/UI/glitch-source-preview.ui @@ -11,7 +11,7 @@ - Glitch: Source + Glitch: Source Preview @@ -101,5 +101,22 @@ - + + + close + clicked() + glitch_source_preview + reject() + + + 537 + 568 + + + 299 + 299 + + + +