comparison view/ViewManager.cpp @ 584:1fe7951a61e8 debug-output

Remove most toStdString calls (no longer needed, with debug header)
author Chris Cannam
date Thu, 12 May 2011 17:31:43 +0100
parents fb8b1b2f7dea
children f4960f8ce798
comparison
equal deleted inserted replaced
583:4c484636d5ec 584:1fe7951a61e8
59 settings.endGroup(); 59 settings.endGroup();
60 60
61 if (getGlobalDarkBackground()) { 61 if (getGlobalDarkBackground()) {
62 /* 62 /*
63 std::cerr << "dark palette:" << std::endl; 63 std::cerr << "dark palette:" << std::endl;
64 std::cerr << "window = " << QApplication::palette().color(QPalette::Window).name().toStdString() << std::endl; 64 std::cerr << "window = " << QApplication::palette().color(QPalette::Window).name() << std::endl;
65 std::cerr << "windowtext = " << QApplication::palette().color(QPalette::WindowText).name().toStdString() << std::endl; 65 std::cerr << "windowtext = " << QApplication::palette().color(QPalette::WindowText).name() << std::endl;
66 std::cerr << "base = " << QApplication::palette().color(QPalette::Base).name().toStdString() << std::endl; 66 std::cerr << "base = " << QApplication::palette().color(QPalette::Base).name() << std::endl;
67 std::cerr << "alternatebase = " << QApplication::palette().color(QPalette::AlternateBase).name().toStdString() << std::endl; 67 std::cerr << "alternatebase = " << QApplication::palette().color(QPalette::AlternateBase).name() << std::endl;
68 std::cerr << "text = " << QApplication::palette().color(QPalette::Text).name().toStdString() << std::endl; 68 std::cerr << "text = " << QApplication::palette().color(QPalette::Text).name() << std::endl;
69 std::cerr << "button = " << QApplication::palette().color(QPalette::Button).name().toStdString() << std::endl; 69 std::cerr << "button = " << QApplication::palette().color(QPalette::Button).name() << std::endl;
70 std::cerr << "buttontext = " << QApplication::palette().color(QPalette::ButtonText).name().toStdString() << std::endl; 70 std::cerr << "buttontext = " << QApplication::palette().color(QPalette::ButtonText).name() << std::endl;
71 std::cerr << "brighttext = " << QApplication::palette().color(QPalette::BrightText).name().toStdString() << std::endl; 71 std::cerr << "brighttext = " << QApplication::palette().color(QPalette::BrightText).name() << std::endl;
72 std::cerr << "light = " << QApplication::palette().color(QPalette::Light).name().toStdString() << std::endl; 72 std::cerr << "light = " << QApplication::palette().color(QPalette::Light).name() << std::endl;
73 std::cerr << "dark = " << QApplication::palette().color(QPalette::Dark).name().toStdString() << std::endl; 73 std::cerr << "dark = " << QApplication::palette().color(QPalette::Dark).name() << std::endl;
74 std::cerr << "mid = " << QApplication::palette().color(QPalette::Mid).name().toStdString() << std::endl; 74 std::cerr << "mid = " << QApplication::palette().color(QPalette::Mid).name() << std::endl;
75 */ 75 */
76 m_lightPalette = QPalette(QColor("#000000"), // WindowText 76 m_lightPalette = QPalette(QColor("#000000"), // WindowText
77 QColor("#dddfe4"), // Button 77 QColor("#dddfe4"), // Button
78 QColor("#ffffff"), // Light 78 QColor("#ffffff"), // Light
79 QColor("#555555"), // Dark 79 QColor("#555555"), // Dark
85 85
86 86
87 } else { 87 } else {
88 /* 88 /*
89 std::cerr << "light palette:" << std::endl; 89 std::cerr << "light palette:" << std::endl;
90 std::cerr << "window = " << QApplication::palette().color(QPalette::Window).name().toStdString() << std::endl; 90 std::cerr << "window = " << QApplication::palette().color(QPalette::Window).name() << std::endl;
91 std::cerr << "windowtext = " << QApplication::palette().color(QPalette::WindowText).name().toStdString() << std::endl; 91 std::cerr << "windowtext = " << QApplication::palette().color(QPalette::WindowText).name() << std::endl;
92 std::cerr << "base = " << QApplication::palette().color(QPalette::Base).name().toStdString() << std::endl; 92 std::cerr << "base = " << QApplication::palette().color(QPalette::Base).name() << std::endl;
93 std::cerr << "alternatebase = " << QApplication::palette().color(QPalette::AlternateBase).name().toStdString() << std::endl; 93 std::cerr << "alternatebase = " << QApplication::palette().color(QPalette::AlternateBase).name() << std::endl;
94 std::cerr << "text = " << QApplication::palette().color(QPalette::Text).name().toStdString() << std::endl; 94 std::cerr << "text = " << QApplication::palette().color(QPalette::Text).name() << std::endl;
95 std::cerr << "button = " << QApplication::palette().color(QPalette::Button).name().toStdString() << std::endl; 95 std::cerr << "button = " << QApplication::palette().color(QPalette::Button).name() << std::endl;
96 std::cerr << "buttontext = " << QApplication::palette().color(QPalette::ButtonText).name().toStdString() << std::endl; 96 std::cerr << "buttontext = " << QApplication::palette().color(QPalette::ButtonText).name() << std::endl;
97 std::cerr << "brighttext = " << QApplication::palette().color(QPalette::BrightText).name().toStdString() << std::endl; 97 std::cerr << "brighttext = " << QApplication::palette().color(QPalette::BrightText).name() << std::endl;
98 std::cerr << "light = " << QApplication::palette().color(QPalette::Light).name().toStdString() << std::endl; 98 std::cerr << "light = " << QApplication::palette().color(QPalette::Light).name() << std::endl;
99 std::cerr << "dark = " << QApplication::palette().color(QPalette::Dark).name().toStdString() << std::endl; 99 std::cerr << "dark = " << QApplication::palette().color(QPalette::Dark).name() << std::endl;
100 std::cerr << "mid = " << QApplication::palette().color(QPalette::Mid).name().toStdString() << std::endl; 100 std::cerr << "mid = " << QApplication::palette().color(QPalette::Mid).name() << std::endl;
101 */ 101 */
102 m_darkPalette = QPalette(QColor("#ffffff"), // WindowText 102 m_darkPalette = QPalette(QColor("#ffffff"), // WindowText
103 QColor("#3e3e3e"), // Button 103 QColor("#3e3e3e"), // Button
104 QColor("#808080"), // Light 104 QColor("#808080"), // Light
105 QColor("#1e1e1e"), // Dark 105 QColor("#1e1e1e"), // Dark