From 8432e0048f9530040d5aae130ee5bd04f4d6375c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 21 Aug 2010 13:43:07 +0200 Subject: [PATCH] GUI: updated helpwindow ui --- gui/helpwindow.cpp | 8 +++- gui/helpwindow.ui | 100 ++++++++++++++++++++++++++++++++++----------- 2 files changed, 83 insertions(+), 25 deletions(-) diff --git a/gui/helpwindow.cpp b/gui/helpwindow.cpp index 2841d72bd..15cc96e27 100644 --- a/gui/helpwindow.cpp +++ b/gui/helpwindow.cpp @@ -65,10 +65,16 @@ HelpWindow::HelpWindow(QWidget *parent) : helpPanel->insertWidget(1, helpBrowser); helpPanel->setStretchFactor(1, 1); - m_ui->horizontalLayout->addWidget(helpPanel); + m_ui->mainLayout->addWidget(helpPanel); connect(helpEngine->contentWidget(), SIGNAL(linkActivated(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())); } } diff --git a/gui/helpwindow.ui b/gui/helpwindow.ui index 83df02585..5aafaa776 100644 --- a/gui/helpwindow.ui +++ b/gui/helpwindow.ui @@ -1,24 +1,76 @@ - - - HelpWindow - - - - 0 - 0 - 400 - 300 - - - - Cppcheck Help - - - - - - - - - - + + + HelpWindow + + + + 0 + 0 + 714 + 454 + + + + Cppcheck Help + + + + + + + + Back + + + + + + + Forward + + + + + + + Home + + + + + + + Zoom In + + + + + + + Zoom Out + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + +