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

OS/2 related tweaks.

- fixed compilation error by renaming menu.h to enhancedmenu.h
This commit is contained in:
nowrep 2011-12-14 22:30:05 +01:00
parent 59de491557
commit 04af41d0b2
8 changed files with 13 additions and 13 deletions

View File

@ -218,7 +218,7 @@ void MainApplication::loadSettings()
cssFile.close(); cssFile.close();
} }
#endif #endif
#ifdef Q_WS_WIN #if defined(Q_WS_WIN) || defined(Q_OS_OS2)
if (QFile(m_activeThemePath + "windows.css").exists()) { if (QFile(m_activeThemePath + "windows.css").exists()) {
cssFile.setFileName(m_activeThemePath + "windows.css"); cssFile.setFileName(m_activeThemePath + "windows.css");
cssFile.open(QFile::ReadOnly); cssFile.open(QFile::ReadOnly);

View File

@ -60,7 +60,7 @@
#include "bookmarksimportdialog.h" #include "bookmarksimportdialog.h"
#include "globalfunctions.h" #include "globalfunctions.h"
#include "webhistorywrapper.h" #include "webhistorywrapper.h"
#include "menu.h" #include "enhancedmenu.h"
const QString QupZilla::VERSION = "1.1.0"; const QString QupZilla::VERSION = "1.1.0";
const QString QupZilla::BUILDTIME = __DATE__" "__TIME__; const QString QupZilla::BUILDTIME = __DATE__" "__TIME__;

View File

@ -22,7 +22,7 @@
#include "historymodel.h" #include "historymodel.h"
#include "toolbutton.h" #include "toolbutton.h"
#include "databasewriter.h" #include "databasewriter.h"
#include "menu.h" #include "enhancedmenu.h"
BookmarksToolbar::BookmarksToolbar(QupZilla* mainClass, QWidget* parent) BookmarksToolbar::BookmarksToolbar(QupZilla* mainClass, QWidget* parent)
: QWidget(parent) : QWidget(parent)

View File

@ -22,7 +22,7 @@
#include "websearchbar.h" #include "websearchbar.h"
#include "reloadstopbutton.h" #include "reloadstopbutton.h"
#include "webhistorywrapper.h" #include "webhistorywrapper.h"
#include "menu.h" #include "enhancedmenu.h"
NavigationBar::NavigationBar(QupZilla* mainClass, QWidget* parent) NavigationBar::NavigationBar(QupZilla* mainClass, QWidget* parent)
: QWidget(parent) : QWidget(parent)

View File

@ -21,7 +21,7 @@
#include "sourceviewersearch.h" #include "sourceviewersearch.h"
#include "globalfunctions.h" #include "globalfunctions.h"
#include "iconprovider.h" #include "iconprovider.h"
#include "menu.h" #include "enhancedmenu.h"
SourceViewer::SourceViewer(QWebPage* page, const QString &selectedHtml) SourceViewer::SourceViewer(QWebPage* page, const QString &selectedHtml)
: QWidget(0) : QWidget(0)

View File

@ -177,7 +177,7 @@ SOURCES += main.cpp\
plugins/speeddial.cpp \ plugins/speeddial.cpp \
other/databasewriter.cpp \ other/databasewriter.cpp \
bookmarksimport/htmlimporter.cpp \ bookmarksimport/htmlimporter.cpp \
tools/menu.cpp tools/enhancedmenu.cpp
HEADERS += \ HEADERS += \
3rdparty/qtwin.h \ 3rdparty/qtwin.h \
@ -296,7 +296,7 @@ HEADERS += \
plugins/speeddial.h \ plugins/speeddial.h \
other/databasewriter.h \ other/databasewriter.h \
bookmarksimport/htmlimporter.h \ bookmarksimport/htmlimporter.h \
tools/menu.h tools/enhancedmenu.h
FORMS += \ FORMS += \
preferences/autofillmanager.ui \ preferences/autofillmanager.ui \

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
* ============================================================ */ * ============================================================ */
#include "menu.h" #include "enhancedmenu.h"
Menu::Menu(QWidget* parent) Menu::Menu(QWidget* parent)
: QMenu(parent) : QMenu(parent)
@ -37,13 +37,13 @@ void Menu::mouseReleaseEvent(QMouseEvent* e)
} }
if (e->button() == Qt::LeftButton && e->modifiers() == Qt::NoModifier) { if (e->button() == Qt::LeftButton && e->modifiers() == Qt::NoModifier) {
act->trigger();
closeAllMenus(); closeAllMenus();
act->trigger();
e->accept(); e->accept();
} }
else if (e->button() == Qt::MiddleButton || (e->button() == Qt::LeftButton && e->modifiers() == Qt::ControlModifier)) { else if (e->button() == Qt::MiddleButton || (e->button() == Qt::LeftButton && e->modifiers() == Qt::ControlModifier)) {
act->triggerMiddleClick();
closeAllMenus(); closeAllMenus();
act->triggerMiddleClick();
e->accept(); e->accept();
} }
} }

View File

@ -15,8 +15,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
* ============================================================ */ * ============================================================ */
#ifndef MENU_H #ifndef ENHANCEDMENU_H
#define MENU_H #define ENHANCEDMENU_H
#include <QMenu> #include <QMenu>
#include <QMouseEvent> #include <QMouseEvent>
@ -55,4 +55,4 @@ public slots:
}; };
#endif // MENU_H #endif // ENHANCEDMENU_H