1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Remove non-working Work Offline option

This commit is contained in:
David Rosca 2015-10-15 10:28:03 +02:00
parent dd5c5db142
commit 96cc2d41e2
6 changed files with 0 additions and 24 deletions

View File

@ -783,15 +783,6 @@ void BrowserWindow::toggleFullScreen()
}
}
void BrowserWindow::toggleOfflineMode()
{
bool enable = !qzSettings->workOffline;
Settings().setValue("Web-Browser-Settings/WorkOffline", enable);
qzSettings->workOffline = enable;
}
void BrowserWindow::enterHtmlFullScreen()
{
showFullScreen();

View File

@ -131,7 +131,6 @@ public slots:
void toggleTabsOnTop(bool enable);
void toggleFullScreen();
void toggleOfflineMode();
void enterHtmlFullScreen();
void loadActionUrl(QObject* obj = 0);

View File

@ -97,7 +97,6 @@ void MainMenu::initSuperMenu(QMenu* superMenu) const
superMenu->addAction(m_actions[QSL("Help/InfoAboutApp")]);
superMenu->addAction(m_actions[QSL("Help/ConfigInfo")]);
superMenu->addAction(m_actions[QSL("Help/ReportIssue")]);
superMenu->addAction(m_actions[QSL("File/WorkOffline")]);
superMenu->addSeparator();
superMenu->addAction(m_actions[QSL("Standard/Quit")]);
@ -174,11 +173,6 @@ void MainMenu::printPage()
callSlot("printPage");
}
void MainMenu::toggleOfflineMode()
{
callSlot("toggleOfflineMode");
}
void MainMenu::editUndo()
{
if (m_window) {
@ -361,7 +355,6 @@ void MainMenu::aboutToShowFileMenu()
#ifndef Q_OS_MAC
m_actions[QSL("File/CloseWindow")]->setEnabled(mApp->windowCount() > 1);
#endif
m_actions[QSL("File/WorkOffline")]->setChecked(qzSettings->workOffline);
}
void MainMenu::aboutToHideFileMenu()
@ -524,8 +517,6 @@ void MainMenu::init()
ADD_ACTION("File/SendLink", m_menuFile, QIcon::fromTheme(QSL("mail-message-new")), tr("Send Link..."), SLOT(sendLink()), "");
ADD_ACTION("File/Print", m_menuFile, QIcon::fromTheme(QSL("document-print")), tr("&Print..."), SLOT(printPage()), "Ctrl+P");
m_menuFile->addSeparator();
ADD_CHECKABLE_ACTION("File/WorkOffline", m_menuFile, QIcon(), tr("Work &Offline"), SLOT(toggleOfflineMode()), "");
m_menuFile->addSeparator();
m_menuFile->addAction(m_actions[QSL("Standard/Quit")]);
// Edit menu

View File

@ -58,7 +58,6 @@ private slots:
void openLocation();
void openFile();
void closeWindow();
void toggleOfflineMode();
void sendLink();
void printPage();

View File

@ -53,8 +53,6 @@ void QzSettings::loadSettings()
allowJsHideMenuBar = settings.value("allowJavaScriptHideMenuBar", true).toBool();
allowJsHideStatusBar = settings.value("allowJavaScriptHideStatusBar", true).toBool();
allowJsHideToolBar = settings.value("allowJavaScriptHideToolBar", true).toBool();
enableFormsUndoRedo = settings.value("enableFormsUndoRedo", true).toBool();
workOffline = settings.value("WorkOffline", false).toBool();
settings.endGroup();
settings.beginGroup("Browser-Tabs-Settings");

View File

@ -53,8 +53,6 @@ public:
bool allowJsHideMenuBar;
bool allowJsHideStatusBar;
bool allowJsHideToolBar;
bool enableFormsUndoRedo;
bool workOffline;
QStringList autoOpenProtocols;
QStringList blockedProtocols;