Deskflow
1.26.0.418
Keyboard and mouse sharing utility
Toggle main menu visibility
Loading...
Searching...
No Matches
ScreenSetupView.h
Go to the documentation of this file.
1
/*
2
* Deskflow -- mouse and keyboard sharing utility
3
* SPDX-FileCopyrightText: (C) 2012 Synergy App Ltd
4
* SPDX-FileCopyrightText: (C) 2008 Volker Lanz <vl@fidra.de>
5
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6
*/
7
8
#pragma once
9
10
#include <QFlags>
11
#include <QTableView>
12
13
class
QWidget;
14
class
QMouseEvent;
15
class
QResizeEvent;
16
class
QDragEnterEvent;
17
class
ScreenSetupModel
;
18
19
class
ScreenSetupView
:
public
QTableView
20
{
21
Q_OBJECT
22
23
public
:
24
explicit
ScreenSetupView
(QWidget *parent);
25
void
setModel
(QAbstractItemModel *
model
)
override
;
26
ScreenSetupModel
*
model
()
const
;
27
28
private
:
29
void
showScreenConfig(
int
col,
int
row);
30
31
protected
:
32
void
mouseDoubleClickEvent
(QMouseEvent *)
override
;
33
void
setTableSize
();
34
void
resizeEvent
(QResizeEvent *)
override
;
35
void
dragEnterEvent
(QDragEnterEvent *event)
override
;
36
void
dragMoveEvent
(QDragMoveEvent *event)
override
;
37
void
startDrag
(Qt::DropActions supportedActions)
override
;
38
void
initViewItemOption
(QStyleOptionViewItem *option)
const override
;
39
void
scrollTo
(
const
QModelIndex &, ScrollHint)
override
40
{
41
// do nothing
42
}
43
};
ScreenSetupModel
Definition
ScreenSetupModel.h:21
ScreenSetupView::startDrag
void startDrag(Qt::DropActions supportedActions) override
Definition
ScreenSetupView.cpp:117
ScreenSetupView::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *) override
Definition
ScreenSetupView.cpp:69
ScreenSetupView::setTableSize
void setTableSize()
Definition
ScreenSetupView.cpp:54
ScreenSetupView::resizeEvent
void resizeEvent(QResizeEvent *) override
Definition
ScreenSetupView.cpp:63
ScreenSetupView::initViewItemOption
void initViewItemOption(QStyleOptionViewItem *option) const override
Definition
ScreenSetupView.cpp:148
ScreenSetupView::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *event) override
Definition
ScreenSetupView.cpp:82
ScreenSetupView::model
ScreenSetupModel * model() const
Definition
ScreenSetupView.cpp:42
ScreenSetupView::setModel
void setModel(QAbstractItemModel *model) override
Definition
ScreenSetupView.cpp:36
ScreenSetupView::ScreenSetupView
ScreenSetupView(QWidget *parent)
Definition
ScreenSetupView.cpp:22
ScreenSetupView::scrollTo
void scrollTo(const QModelIndex &, ScrollHint) override
Definition
ScreenSetupView.h:39
ScreenSetupView::dragMoveEvent
void dragMoveEvent(QDragMoveEvent *event) override
Definition
ScreenSetupView.cpp:92
src
lib
gui
widgets
ScreenSetupView.h
Generated by
1.18.0