diff --git a/examples/automotive/main.cpp b/examples/automotive/main.cpp index 67475c81..6a4ec923 100644 --- a/examples/automotive/main.cpp +++ b/examples/automotive/main.cpp @@ -6,6 +6,9 @@ #include #include +#include + +using namespace std; int main( int argc, char** argv ) { @@ -29,7 +32,8 @@ int main( int argc, char** argv ) qskSetup->setSkin( "DefaultSkin" ); - SkinnyShortcut::enable( SkinnyShortcut::DebugBackground | SkinnyShortcut::Quit ); + cout << "CTRL-S to change the skin." << endl; + cout << "CTRL-T to change the color scheme, when the \"Default\" skin is active." << endl; QskShortcut::addShortcut( QKeySequence( Qt::CTRL + Qt::Key_T ), &skinFactory, SLOT( toggleScheme()), false ); @@ -37,6 +41,10 @@ int main( int argc, char** argv ) QskShortcut::addShortcut( QKeySequence( Qt::CTRL + Qt::Key_S ), &skinFactory, SLOT( rotateSkin()), false ); + // With CTRL-B you can rotate a couple of visual debug modes + SkinnyShortcut::enable( SkinnyShortcut::DebugBackground | + SkinnyShortcut::DebugStatistics | SkinnyShortcut::Quit ); + MainWindow mainWindow; mainWindow.show(); diff --git a/support/SkinnyShortcut.cpp b/support/SkinnyShortcut.cpp index d90fa1ec..e00420e2 100644 --- a/support/SkinnyShortcut.cpp +++ b/support/SkinnyShortcut.cpp @@ -204,8 +204,8 @@ void SkinnyShortcut::debugStatistics() int counter[4] = {}; countItems( w->contentItem(), counter ); - std::cout << w << "\n\titems:" << counter[0] << "visible" << counter[1] - << "\n\tnodes:" << counter[2] << "visible" << counter[3] << std::endl; + qDebug() << w << "\n\titems:" << counter[0] << "visible" << counter[1] + << "\n\tnodes:" << counter[2] << "visible" << counter[3]; } }