forked from qt-creator/qt-creator
Core: Add clearAboutInformation function
Change-Id: Ib6dcc3b963917c096756cbff09541f4e13c8184b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -938,6 +938,14 @@ QStringList ICore::additionalAboutInformation()
|
|||||||
return m_mainwindow->additionalAboutInformation();
|
return m_mainwindow->additionalAboutInformation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\internal
|
||||||
|
*/
|
||||||
|
void ICore::clearAboutInformation()
|
||||||
|
{
|
||||||
|
m_mainwindow->clearAboutInformation();
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ signals:
|
|||||||
public:
|
public:
|
||||||
/* internal use */
|
/* internal use */
|
||||||
static QStringList additionalAboutInformation();
|
static QStringList additionalAboutInformation();
|
||||||
|
static void clearAboutInformation();
|
||||||
static void appendAboutInformation(const QString &line);
|
static void appendAboutInformation(const QString &line);
|
||||||
static QString systemInformation();
|
static QString systemInformation();
|
||||||
static void setupScreenShooter(const QString &name, QWidget *w, const QRect &rc = QRect());
|
static void setupScreenShooter(const QString &name, QWidget *w, const QRect &rc = QRect());
|
||||||
|
|||||||
@@ -240,6 +240,11 @@ QStringList MainWindow::additionalAboutInformation() const
|
|||||||
return m_aboutInformation;
|
return m_aboutInformation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::clearAboutInformation()
|
||||||
|
{
|
||||||
|
m_aboutInformation.clear();
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::appendAboutInformation(const QString &line)
|
void MainWindow::appendAboutInformation(const QString &line)
|
||||||
{
|
{
|
||||||
m_aboutInformation.append(line);
|
m_aboutInformation.append(line);
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ public:
|
|||||||
void setOverrideColor(const QColor &color);
|
void setOverrideColor(const QColor &color);
|
||||||
|
|
||||||
QStringList additionalAboutInformation() const;
|
QStringList additionalAboutInformation() const;
|
||||||
|
void clearAboutInformation();
|
||||||
void appendAboutInformation(const QString &line);
|
void appendAboutInformation(const QString &line);
|
||||||
|
|
||||||
void addPreCloseListener(const std::function<bool()> &listener);
|
void addPreCloseListener(const std::function<bool()> &listener);
|
||||||
|
|||||||
Reference in New Issue
Block a user