glvdebug: Hide the unused State tab.
authorPeter Lohrmann <peterl@valvesofware.com>
Wed, 11 Feb 2015 21:39:10 +0000 (13:39 -0800)
committerJon Ashburn <jon@lunarg.com>
Thu, 12 Feb 2015 15:08:29 +0000 (08:08 -0700)
* We currently don't support any content for this tab, so removing it.
* The tabWidget must be created with a tab, so it can't go away completely, but at least it allows us to remove the one tab.

tools/glave/src/glvdebug/glvdebug.cpp

index e3872ac..1a858be 100755 (executable)
@@ -66,6 +66,9 @@ glvdebug::glvdebug(QWidget *parent)
 {\r
     ui->setupUi(this);\r
 \r
+    // Hide unused, default tab\r
+    ui->stateTabWidget->removeTab(0);\r
+\r
     memset(&m_traceFileInfo, 0, sizeof(glvdebug_trace_file_info));\r
 \r
     this->move(g_settings.window_position_left, g_settings.window_position_top);\r
@@ -102,7 +105,6 @@ glvdebug::glvdebug(QWidget *parent)
     connect(m_pGenerateTraceDialog, SIGNAL(output_message(QString)), this, SLOT(on_message(QString)));\r
     connect(m_pGenerateTraceDialog, SIGNAL(output_error(QString)), this, SLOT(on_error(QString)));\r
 \r
-\r
     reset_tracefile_ui();\r
 \r
     // for now, remove these widgets since they are not used\r