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:
parent
c44d844c87
commit
d9d8506536
3
src/3rdparty/qtwin.cpp
vendored
3
src/3rdparty/qtwin.cpp
vendored
@ -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;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
@ -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);
|
||||
|
@ -44,7 +44,7 @@ signals:
|
||||
public slots:
|
||||
|
||||
private:
|
||||
void timerEvent(QTimerEvent *);
|
||||
void timerEvent(QTimerEvent* event);
|
||||
QBasicTimer m_timer;
|
||||
|
||||
};
|
||||
|
@ -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;
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user