1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Updated code model

This commit is contained in:
nowrep 2011-03-17 17:03:04 +01:00
parent c44d844c87
commit d9d8506536
100 changed files with 246 additions and 239 deletions

View File

@ -109,6 +109,7 @@ static bool resolveLibs()
*/
bool QtWin::isRunningWindows7()
{
#ifdef Q_WS_WIN
OSVERSIONINFO osvi;
ZeroMemory(&osvi, sizeof(OSVERSIONINFO));
@ -117,6 +118,8 @@ bool QtWin::isRunningWindows7()
GetVersionEx(&osvi);
return ( (osvi.dwMajorVersion > 6) || ( (osvi.dwMajorVersion == 6) && (osvi.dwMinorVersion >= 1) ));
#endif
return false;
}
/*!

View File

@ -256,6 +256,8 @@ void QupZilla::setupMenu()
m_menuView->addAction(QIcon::fromTheme("zoom-in"), tr("Zoom In"), this, SLOT(zoomIn()))->setShortcut(QKeySequence("Ctrl++"));
m_menuView->addAction(QIcon::fromTheme("zoom-out"), tr("Zoom Out"), this, SLOT(zoomOut()))->setShortcut(QKeySequence("Ctrl+-"));
m_menuView->addAction(QIcon::fromTheme("zoom-original"), tr("Reset"), this, SLOT(zoomReset()))->setShortcut(QKeySequence("Ctrl+0"));
m_menuView->addSeparator();
m_menuView->addSeparator();
m_menuView->addAction(QIcon::fromTheme("text-html"), tr("Page Source"), this, SLOT(showSource()))->setShortcut(QKeySequence("Ctrl+U"));
m_menuView->addAction(m_actionShowFullScreen);

View File

@ -44,7 +44,7 @@ signals:
public slots:
private:
void timerEvent(QTimerEvent *);
void timerEvent(QTimerEvent* event);
QBasicTimer m_timer;
};

View File

@ -204,6 +204,7 @@ private:
QMenu* m_menuHistory;
QMenu* m_menuBack;
QMenu* m_menuForward;
QMenu* m_menuEncoding;
QAction* m_actionShowToolbar;
QAction* m_actionShowBookmarksToolbar;
QAction* m_actionShowStatusbar;

View File

@ -104,6 +104,7 @@ void SourceViewer::save()
QFile file(filePath);
if (!file.open(QFile::WriteOnly)) {
QMessageBox::critical(this, tr("Error!"), tr("Cannot write to file!"));
m_statusBar->showMessage(tr("Error writing to file"));
return;
}
file.write(m_sourceEdit->toPlainText().toAscii());