Deskflow
1.27.0.7
Keyboard and mouse sharing utility
Toggle main menu visibility
Loading...
Searching...
No Matches
ComputerSetupView.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
ComputerSetupModel
;
18
19
class
ComputerSetupView
:
public
QTableView
20
{
21
Q_OBJECT
22
23
public
:
24
explicit
ComputerSetupView
(QWidget *parent);
25
void
setModel
(QAbstractItemModel *
model
)
override
;
26
ComputerSetupModel
*
model
()
const
;
27
28
private
:
29
void
showComputerConfig(
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
};
ComputerSetupModel
Definition
ComputerSetupModel.h:21
ComputerSetupView::setModel
void setModel(QAbstractItemModel *model) override
Definition
ComputerSetupView.cpp:36
ComputerSetupView::initViewItemOption
void initViewItemOption(QStyleOptionViewItem *option) const override
Definition
ComputerSetupView.cpp:148
ComputerSetupView::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *) override
Definition
ComputerSetupView.cpp:69
ComputerSetupView::startDrag
void startDrag(Qt::DropActions supportedActions) override
Definition
ComputerSetupView.cpp:117
ComputerSetupView::resizeEvent
void resizeEvent(QResizeEvent *) override
Definition
ComputerSetupView.cpp:63
ComputerSetupView::dragMoveEvent
void dragMoveEvent(QDragMoveEvent *event) override
Definition
ComputerSetupView.cpp:92
ComputerSetupView::scrollTo
void scrollTo(const QModelIndex &, ScrollHint) override
Definition
ComputerSetupView.h:39
ComputerSetupView::ComputerSetupView
ComputerSetupView(QWidget *parent)
Definition
ComputerSetupView.cpp:22
ComputerSetupView::model
ComputerSetupModel * model() const
Definition
ComputerSetupView.cpp:42
ComputerSetupView::setTableSize
void setTableSize()
Definition
ComputerSetupView.cpp:54
ComputerSetupView::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *event) override
Definition
ComputerSetupView.cpp:82
src
lib
gui
widgets
ComputerSetupView.h
Generated by
1.18.0