From 233e75225c527ef64ed404473095251436bbba22 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sat, 10 Sep 2022 20:01:48 -0400 Subject: [PATCH] add link to stylesheets --- extensions/styler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/styler.cpp b/extensions/styler.cpp index 9ea6982..304a8b3 100644 --- a/extensions/styler.cpp +++ b/extensions/styler.cpp @@ -4,7 +4,7 @@ extern const char* LOAD_SCRIPT; -constexpr auto STYLE_SAVE_FILE = u8"Textractor.css"; +constexpr auto STYLE_SAVE_FILE = u8"Textractor.qss"; class Window : public QDialog, Localizer { @@ -13,7 +13,8 @@ public: { connect(&loadButton, &QPushButton::clicked, this, &Window::LoadScript); - if (scriptEditor.toPlainText().isEmpty()) scriptEditor.setPlainText("/*https://doc.qt.io/qt-5/stylesheet-syntax.html*/"); + if (scriptEditor.toPlainText().isEmpty()) + scriptEditor.setPlainText("/*\nhttps://www.google.com/search?q=Qt+stylesheet+gallery\nhttps://doc.qt.io/qt-5/stylesheet-syntax.html\n*/"); layout.addWidget(&scriptEditor); layout.addWidget(&loadButton);