Commit 97d4e5d6 authored by Frederik Gladhorn's avatar Frederik Gladhorn
Browse files

Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I5025f2136d4e1ab80095032052d15d115a20ba45
Showing with 7 additions and 42 deletions
......@@ -41,6 +41,8 @@
#include <QApplication>
#include <QMessageBox>
#include <QProgressBar>
#include <QLineEdit>
#include <QLabel>
#include <QStatusBar>
#include <QMainWindow>
#include <QAbstractEventDispatcher>
......@@ -74,6 +76,7 @@ public slots:
private:
QProgressBar *pb;
QLineEdit *addressEdit;
};
//! [0] //! [1]
......@@ -81,6 +84,10 @@ MainWindow::MainWindow()
{
setupUi(this);
addressEdit = new QLineEdit;
tbAddress->insertWidget(actionGo, new QLabel(tr("Address")));
tbAddress->insertWidget(actionGo, addressEdit);
connect(addressEdit, SIGNAL(returnPressed()), actionGo, SLOT(trigger()));
connect(actionBack, SIGNAL(triggered()), WebBrowser, SLOT(GoBack()));
connect(actionForward, SIGNAL(triggered()), WebBrowser, SLOT(GoForward()));
......
......@@ -87,19 +87,6 @@
<property name="windowTitle" >
<string>Address</string>
</property>
<widget class="QLabel" name="lblAddress" >
<property name="objectName" >
<string notr="true" >lblAddress</string>
</property>
<property name="text" >
<string>Address</string>
</property>
</widget>
<widget class="QLineEdit" name="addressEdit" >
<property name="objectName" >
<string notr="true" >addressEdit</string>
</property>
</widget>
<addaction name="actionGo" />
</widget>
<widget class="QMenuBar" name="menubar" >
......@@ -271,14 +258,6 @@
<header>webaxwidget.h</header>
</customwidget>
</customwidgets>
<connections>
<connection>
<sender>addressEdit</sender>
<signal>returnPressed()</signal>
<receiver>actionGo</receiver>
<slot>trigger()</slot>
</connection>
</connections>
<layoutdefault spacing="6" margin="11" />
<images>
<image name="image0" >
......
......@@ -87,19 +87,6 @@
<property name="windowTitle" >
<string>Address</string>
</property>
<widget class="QLabel" name="lblAddress" >
<property name="objectName" >
<string notr="true" >lblAddress</string>
</property>
<property name="text" >
<string>Address</string>
</property>
</widget>
<widget class="QLineEdit" name="addressEdit" >
<property name="objectName" >
<string notr="true" >addressEdit</string>
</property>
</widget>
<addaction name="actionGo" />
</widget>
<widget class="QMenuBar" name="menubar" >
......@@ -264,14 +251,6 @@
</property>
</actiongroup>
</widget>
<connections>
<connection>
<sender>addressEdit</sender>
<signal>returnPressed()</signal>
<receiver>actionGo</receiver>
<slot>trigger()</slot>
</connection>
</connections>
<layoutdefault spacing="6" margin="11" />
<images>
<image name="image0" >
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment