Fixes / improvements found during testing

* Redundant "simulatorStatusChanged" signal in proxy
* invokeMethod for timer
* removed redundant this->buildNavigator(1)
* Shortcut in GUI
* comment in variant
This commit is contained in:
Klaus Basan
2015-05-16 01:19:40 +02:00
parent 405de80945
commit c380b8df23
9 changed files with 39 additions and 11 deletions

View File

@@ -41,7 +41,7 @@ namespace BlackGui
explicit CMappingComponent(QWidget *parent = nullptr);
//! Destructor
~CMappingComponent();
virtual ~CMappingComponent();
//! Number of current mappings
int countCurrentMappings() const;

View File

@@ -31,7 +31,6 @@ namespace BlackGui
this->allowStatusBar(false);
ui->setupUi(this);
this->ps_onStyleSheetsChanged();
this->buildNavigator(1);
}
CNavigatorDockWidget::~CNavigatorDockWidget()
@@ -143,7 +142,7 @@ namespace BlackGui
int CNavigatorDockWidget::columnsForRows(int rows)
{
Q_ASSERT(rows >= 0);
Q_ASSERT_X(rows >= 0, Q_FUNC_INFO, "no rows");
int items = this->m_widgets.size();
int c = items / rows;
return (c * rows) < items ? c + 1 : c;

View File

@@ -34,7 +34,7 @@ namespace BlackGui
explicit CNavigatorDockWidget(QWidget *parent = nullptr);
//! Destructor
~CNavigatorDockWidget();
virtual ~CNavigatorDockWidget();
//! Add action as navigator item
void addAction(QAction * action);

View File

@@ -2,6 +2,26 @@
<ui version="4.0">
<class>CNavigatorDockWidget</class>
<widget class="QDockWidget" name="CNavigatorDockWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>60</width>
<height>38</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>30</width>
<height>38</height>
</size>
</property>
<property name="floating">
<bool>true</bool>
</property>