Use icons and default tool tips in text mark popup

Change-Id: I4487d642e066479e8e344ed77e539de92fbca651
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
David Schulz
2016-08-16 14:19:41 +02:00
parent 0e542a6a29
commit 50a6c47830
6 changed files with 47 additions and 11 deletions

View File

@@ -91,6 +91,7 @@
#include <QClipboard>
#include <QCoreApplication>
#include <QDebug>
#include <QGridLayout>
#include <QKeyEvent>
#include <QMenu>
#include <QMessageBox>
@@ -111,7 +112,6 @@
#include <QTimeLine>
#include <QTimer>
#include <QToolBar>
#include <QVBoxLayout>
//#define DO_FOO
@@ -5122,7 +5122,7 @@ void TextEditorWidget::extraAreaMouseEvent(QMouseEvent *e)
if (data->marks().isEmpty()) {
ToolTip::hide();
} else {
auto layout = new QVBoxLayout;
auto layout = new QGridLayout;
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(2);
foreach (TextMark *mark, data->marks())