forked from qt-creator/qt-creator
Add "presentation mode"
Presentation mode can be entered by passing -presentationMode when starting Qt Creator. It displays a popup with the keyboard shortcut of the commands that are triggered. Great for the DevDays;-) Change-Id: I897966aab491f98e2a5abc4433c40b04e2a8db57 Reviewed-by: Eike Ziller <eike.ziller@nokia.com> Reviewed-by: Liang Qi <liang.qi@nokia.com>
This commit is contained in:
@@ -73,12 +73,14 @@ CorePlugin::~CorePlugin()
|
||||
|
||||
void CorePlugin::parseArguments(const QStringList &arguments)
|
||||
{
|
||||
for (int i = 0; i < arguments.size() - 1; i++) {
|
||||
for (int i = 0; i < arguments.size(); ++i) {
|
||||
if (arguments.at(i) == QLatin1String("-color")) {
|
||||
const QString colorcode(arguments.at(i + 1));
|
||||
m_mainWindow->setOverrideColor(QColor(colorcode));
|
||||
i++; // skip the argument
|
||||
}
|
||||
if (arguments.at(i) == QLatin1String("-presentationMode"))
|
||||
m_mainWindow->setPresentationModeEnabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user