C++ Preprocessor additions widget.

Introducing a Widget with a SnippetEditor and a C++ Highlighter which
should provide additional information to the C++ preprocessor for a
specific file.

Change-Id: I27f9498c7e52d1493d6ea92a02a2c6d26130fe07
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
David Schulz
2013-08-20 07:46:19 +02:00
committed by Erik Verbruggen
parent 1a8ef7f312
commit d411c07643
11 changed files with 480 additions and 28 deletions

View File

@@ -60,6 +60,8 @@ class TipContent;
class QTCREATOR_UTILS_EXPORT ToolTip : public QObject
{
Q_OBJECT
protected:
ToolTip();
public:
~ToolTip();
@@ -73,11 +75,13 @@ public:
static void hide();
static bool isVisible();
private slots:
protected slots:
void hideTipImmediately();
protected:
void showInternal(const QPoint &pos, const TipContent &content, QWidget *w, const QRect &rect);
private:
ToolTip();
bool acceptShow(const TipContent &content, const QPoint &pos, QWidget *w, const QRect &rect);
bool validateContent(const TipContent &content);
void setUp(const QPoint &pos, const TipContent &content, QWidget *w, const QRect &rect);