Changeset View
Changeset View
Standalone View
Standalone View
addons/katesql/schemawidget.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 43 | { | |||
---|---|---|---|---|---|
46 | 46 | | |||
47 | setHeaderLabels(QStringList() << i18nc("@title:column", "Database schema")); | 47 | setHeaderLabels(QStringList() << i18nc("@title:column", "Database schema")); | ||
48 | 48 | | |||
49 | setContextMenuPolicy(Qt::CustomContextMenu); | 49 | setContextMenuPolicy(Qt::CustomContextMenu); | ||
50 | setDragDropMode(QAbstractItemView::DragOnly); | 50 | setDragDropMode(QAbstractItemView::DragOnly); | ||
51 | setDragEnabled(true); | 51 | setDragEnabled(true); | ||
52 | setAcceptDrops(false); | 52 | setAcceptDrops(false); | ||
53 | 53 | | |||
54 | connect(this, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(slotCustomContextMenuRequested(QPoint))); | 54 | connect(this, &SchemaWidget::customContextMenuRequested, this, &SchemaWidget::slotCustomContextMenuRequested); | ||
55 | connect(this, SIGNAL(itemExpanded(QTreeWidgetItem*)), this, SLOT(slotItemExpanded(QTreeWidgetItem*))); | 55 | connect(this, &SchemaWidget::itemExpanded, this, &SchemaWidget::slotItemExpanded); | ||
56 | } | 56 | } | ||
57 | 57 | | |||
58 | 58 | | |||
59 | SchemaWidget::~SchemaWidget() | 59 | SchemaWidget::~SchemaWidget() | ||
60 | { | 60 | { | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | 63 | | |||
▲ Show 20 Lines • Show All 350 Lines • Show Last 20 Lines |