Skip to content

Commit

Permalink
Source preview.
Browse files Browse the repository at this point in the history
  • Loading branch information
textbrowser committed Mar 17, 2024
1 parent b12ed73 commit c426a46
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions Source/glitch-source-preview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
21 changes: 19 additions & 2 deletions UI/glitch-source-preview.ui
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Glitch: Source</string>
<string>Glitch: Source Preview</string>
</property>
<property name="windowIcon">
<iconset resource="../Icons/icons.qrc">
Expand Down Expand Up @@ -101,5 +101,22 @@
<resources>
<include location="../Icons/icons.qrc"/>
</resources>
<connections/>
<connections>
<connection>
<sender>close</sender>
<signal>clicked()</signal>
<receiver>glitch_source_preview</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>537</x>
<y>568</y>
</hint>
<hint type="destinationlabel">
<x>299</x>
<y>299</y>
</hint>
</hints>
</connection>
</connections>
</ui>

0 comments on commit c426a46

Please sign in to comment.