Skip to content

Commit

Permalink
F11 to reload environment
Browse files Browse the repository at this point in the history
Better frame layout
  • Loading branch information
RangelReale committed Jul 31, 2018
1 parent f24ad14 commit 4e11c17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions app/src/Frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 2 additions & 0 deletions app/src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4e11c17

Please sign in to comment.