// Get handles for the views.
backButtonPointer = mainViewUi.backButton;
forwardButtonPointer = mainViewUi.forwardButton;
+ QPushButton *refreshButtonPointer = mainViewUi.refreshButton;
QPushButton *homeButtonPointer = mainViewUi.homeButton;
urlLineEditPointer = mainViewUi.urlLineEdit;
javaScriptButtonPointer = mainViewUi.javaScript;
// Setup the URL bar buttons.
connect(backButtonPointer, SIGNAL(clicked()), webEngineViewPointer, SLOT(back()));
connect(forwardButtonPointer, SIGNAL(clicked()), webEngineViewPointer, SLOT(forward()));
+ connect(refreshButtonPointer, SIGNAL(clicked()), webEngineViewPointer, SLOT(reload()));
connect(homeButtonPointer, SIGNAL(clicked()), this, SLOT(goHome()));
connect(javaScriptButtonPointer, SIGNAL(clicked()), this, SLOT(toggleJavaScript()));
</rect>
</property>
+ <!-- Main widget. -->
<layout class="QVBoxLayout">
<!-- Set the spacing between items to 0. -->
<property name="spacing">
</widget>
</item>
+ <!-- Refresh button. -->
+ <item>
+ <widget class="QPushButton" name="refreshButton">
+ <property name="icon">
+ <iconset theme="view-refresh" />
+ </property>
+
+ <property name="iconSize">
+ <size>
+ <height>24</height>
+ <width>24</width>
+ </size>
+ </property>
+
+ <property name="flat">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+
<!-- Home button. -->
<item>
<widget class="QPushButton" name="homeButton">