GUI: updated helpwindow ui
This commit is contained in:
parent
65c5b9906e
commit
8432e0048f
|
@ -65,10 +65,16 @@ HelpWindow::HelpWindow(QWidget *parent) :
|
||||||
helpPanel->insertWidget(1, helpBrowser);
|
helpPanel->insertWidget(1, helpBrowser);
|
||||||
helpPanel->setStretchFactor(1, 1);
|
helpPanel->setStretchFactor(1, 1);
|
||||||
|
|
||||||
m_ui->horizontalLayout->addWidget(helpPanel);
|
m_ui->mainLayout->addWidget(helpPanel);
|
||||||
|
|
||||||
connect(helpEngine->contentWidget(), SIGNAL(linkActivated(const QUrl &)),
|
connect(helpEngine->contentWidget(), SIGNAL(linkActivated(const QUrl &)),
|
||||||
helpBrowser, SLOT(setSource(const QUrl &)));
|
helpBrowser, SLOT(setSource(const QUrl &)));
|
||||||
|
|
||||||
|
connect(m_ui->backButton, SIGNAL(clicked()), helpBrowser, SLOT(backward()));
|
||||||
|
connect(m_ui->forwardButton, SIGNAL(clicked()), helpBrowser, SLOT(forward()));
|
||||||
|
connect(m_ui->homeButton, SIGNAL(clicked()), helpBrowser, SLOT(home()));
|
||||||
|
connect(m_ui->zoomInButton, SIGNAL(clicked()), helpBrowser, SLOT(zoomIn()));
|
||||||
|
connect(m_ui->zoomOutButton, SIGNAL(clicked()), helpBrowser, SLOT(zoomOut()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,76 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>HelpWindow</class>
|
<class>HelpWindow</class>
|
||||||
<widget class="QWidget" name="HelpWindow">
|
<widget class="QWidget" name="HelpWindow">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>400</width>
|
<width>714</width>
|
||||||
<height>300</height>
|
<height>454</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Cppcheck Help</string>
|
<string>Cppcheck Help</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QWidget" name="widget" native="true"/>
|
<layout class="QHBoxLayout" name="toolbarlLayout">
|
||||||
</item>
|
<item>
|
||||||
</layout>
|
<widget class="QToolButton" name="backButton">
|
||||||
</widget>
|
<property name="text">
|
||||||
<resources/>
|
<string>Back</string>
|
||||||
<connections/>
|
</property>
|
||||||
</ui>
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="forwardButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Forward</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="homeButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Home</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="zoomInButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Zoom In</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="zoomOutButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Zoom Out</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="mainLayout"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
||||||
|
|
Loading…
Reference in New Issue