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();
}
#endif
#ifdef Q_WS_WIN
#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
if (QFile(m_activeThemePath + "windows.css").exists()) {
cssFile.setFileName(m_activeThemePath + "windows.css");
cssFile.open(QFile::ReadOnly);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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