Files
Sourcetrail/src/lib_gui/qt/window/QtKeyboardShortcuts.h
T
Andreas Stallinger 37ead804bf src: clazy compiler warnings
get rid of most clazy warnings (https://github.com/KDE/clazy)
* range loop use refs
* qcolor ctor with ints
* missing Q_OBJECT macro
* use .constfirst instead of .first

enabled ccache for unix systems for fasterr recompiling
* if ccache is in path we use it now
2017-08-10 09:45:55 +02:00

43 lines
883 B
C++

#ifndef QT_KEYBOARD_SHORTCUTS_H
#define QT_KEYBOARD_SHORTCUTS_H
#include <QScrollArea>
#include <QTableWidget>
#include "qt/window/QtWindow.h"
class QtShortcutTable
: public QTableWidget
{
Q_OBJECT
public:
QtShortcutTable(QWidget* parent = nullptr);
void updateSize();
protected:
virtual void wheelEvent(QWheelEvent *event) Q_DECL_OVERRIDE;
};
class QtKeyboardShortcuts
: public QtWindow
{
Q_OBJECT
public:
QtKeyboardShortcuts(QWidget* parent = 0);
virtual ~QtKeyboardShortcuts();
QSize sizeHint() const override;
virtual void populateWindow(QWidget* widget) override;
virtual void windowReady() override;
private:
QtShortcutTable* createTableWidget(const std::string& objectName);
QTableWidget* createGenerelShortcutsTable();
QTableWidget* createCodeViewShortcutsTable();
QTableWidget* createGraphViewShortcutsTable();
};
#endif // QT_KEYBOARD_SHORTCUTS_H