From 4e11c17d53058fd8cdfda91fd4b269d48a01a376 Mon Sep 17 00:00:00 2001 From: Rangel Reale Date: Tue, 31 Jul 2018 15:32:28 -0300 Subject: [PATCH] F11 to reload environment Better frame layout --- CMakeLists.txt | 2 +- app/src/Frame.cpp | 6 +++--- app/src/MainWindow.cpp | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b8017f..1cae0f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ PROJECT(msgui) set(MSGUI_NUMBER 1) set(MSGUI_VERSION 0) -set(MSGUI_BUILD_NUMBER 114) +set(MSGUI_BUILD_NUMBER 115) set (CMAKE_CXX_STANDARD 14) diff --git a/app/src/Frame.cpp b/app/src/Frame.cpp index a1ee00f..4dc9c49 100644 --- a/app/src/Frame.cpp +++ b/app/src/Frame.cpp @@ -20,15 +20,15 @@ Frame::Frame(msglib::cmd::base::ptr frame, QWidget *parent) : _kind = new QLabel(this); _kind->setWordWrap(true); - _kind->setContentsMargins(0, 0, 0, 0); + _kind->setContentsMargins(2, 2, 2, 2); _name = new mredit::Label(this); _name->setFont(QFontDatabase::systemFont(QFontDatabase::FixedFont)); new msgwidget::highlighter::HL_CPP(_name->document()); _name->setCursor(QCursor(Qt::CursorShape::PointingHandCursor)); - layout->addWidget(_kind); - layout->addWidget(_name); + layout->addWidget(_kind, 1); + layout->addWidget(_name, 5); setFrame(frame); } diff --git a/app/src/MainWindow.cpp b/app/src/MainWindow.cpp index f9183b7..a977887 100644 --- a/app/src/MainWindow.cpp +++ b/app/src/MainWindow.cpp @@ -252,6 +252,8 @@ void MainWindow::createActions() _informationEnvironmentMacroNamesMenu = informationMenu->addAction(tr("Macro &names"), this, &MainWindow::menuInformationEnvironmentMacroNames); _informationEnvironmentMacrosMenu = informationMenu->addAction(tr("&Macros"), this, &MainWindow::menuInformationEnvironmentMacros); + _informationEnvironmentReloadMenu->setShortcut(QKeySequence(Qt::Key_F11)); + informationToolBar->addAction(_informationEnvironmentMenu); informationToolBar->addAction(_informationEnvironmentReloadMenu);