forked from qt-creator/qt-creator
C++ tooltip: Integration with Qt docs always on (for showing brief descriptions).
The old integration option is now used to switch to extended descriptions.
This commit is contained in:
@@ -44,7 +44,7 @@ static const char * const animateMatchingParenthesesKey= "AnimateMatchingParenth
|
||||
static const char * const markTextChangesKey = "MarkTextChanges";
|
||||
static const char * const autoFoldFirstCommentKey = "AutoFoldFirstComment";
|
||||
static const char * const centerCursorOnScrollKey = "CenterCursorOnScroll";
|
||||
static const char * const integrateDocsIntoTooltips = "IntegrateDocsIntoTooltips";
|
||||
static const char * const extendTooltips = "ExtendTooltips";
|
||||
static const char * const groupPostfix = "DisplaySettings";
|
||||
|
||||
namespace TextEditor {
|
||||
@@ -62,7 +62,7 @@ DisplaySettings::DisplaySettings() :
|
||||
m_markTextChanges(true),
|
||||
m_autoFoldFirstComment(true),
|
||||
m_centerCursorOnScroll(false),
|
||||
m_integrateDocsIntoTooltips(true)
|
||||
m_extendTooltips(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ void DisplaySettings::toSettings(const QString &category, QSettings *s) const
|
||||
s->setValue(QLatin1String(markTextChangesKey), m_markTextChanges);
|
||||
s->setValue(QLatin1String(autoFoldFirstCommentKey), m_autoFoldFirstComment);
|
||||
s->setValue(QLatin1String(centerCursorOnScrollKey), m_centerCursorOnScroll);
|
||||
s->setValue(QLatin1String(integrateDocsIntoTooltips), m_integrateDocsIntoTooltips);
|
||||
s->setValue(QLatin1String(extendTooltips), m_extendTooltips);
|
||||
s->endGroup();
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ void DisplaySettings::fromSettings(const QString &category, const QSettings *s)
|
||||
m_markTextChanges = s->value(group + QLatin1String(markTextChangesKey), m_markTextChanges).toBool();
|
||||
m_autoFoldFirstComment = s->value(group + QLatin1String(autoFoldFirstCommentKey), m_autoFoldFirstComment).toBool();
|
||||
m_centerCursorOnScroll = s->value(group + QLatin1String(centerCursorOnScrollKey), m_centerCursorOnScroll).toBool();
|
||||
m_integrateDocsIntoTooltips = s->value(group + QLatin1String(integrateDocsIntoTooltips), m_integrateDocsIntoTooltips).toBool();
|
||||
m_extendTooltips = s->value(group + QLatin1String(extendTooltips), m_extendTooltips).toBool();
|
||||
}
|
||||
|
||||
bool DisplaySettings::equals(const DisplaySettings &ds) const
|
||||
@@ -126,7 +126,7 @@ bool DisplaySettings::equals(const DisplaySettings &ds) const
|
||||
&& m_markTextChanges == ds.m_markTextChanges
|
||||
&& m_autoFoldFirstComment== ds.m_autoFoldFirstComment
|
||||
&& m_centerCursorOnScroll == ds.m_centerCursorOnScroll
|
||||
&& m_integrateDocsIntoTooltips == ds.m_integrateDocsIntoTooltips
|
||||
&& m_extendTooltips == ds.m_extendTooltips
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user