Skip to content

Commit

Permalink
Removed hidden button
Browse files Browse the repository at this point in the history
  • Loading branch information
mensinda committed Jul 12, 2017
1 parent f0f7f52 commit ab03a7e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 50 deletions.
16 changes: 0 additions & 16 deletions libEPLViz/src/settings/SettingsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ SettingsWindow::SettingsWindow(QWidget *parent, ProfileManager *settings)
prof = profiles[currentProfile].get();
ui->profList->setCurrentItem(prof);
updateView();

QBrush tb(Qt::transparent); // Transparent brush, solid pattern
ui->crashButton->setPalette(QPalette(tb, tb, tb, tb, tb, tb, tb, tb, tb));
}


Expand Down Expand Up @@ -702,19 +699,6 @@ int SettingsWindow::execPlotsTab() {
return exec();
}

void SettingsWindow::lauchCrash() {
auto btn = QMessageBox::question(this,
"Secret Crash Dialog",
"This is a debug dialog. It is used to create SEGFAULT's. Pressing the 'Yes' "
"button WILL CRASH EPL-Viz. Save your work before tying it!",
QMessageBox::Yes | QMessageBox::No,
QMessageBox::No);
if (btn == QMessageBox::Yes) {
int *p = nullptr;
*p = 5;
}
}

void SettingsWindow::enterRecordingState() {
for (auto *i : disableList)
i->setEnabled(false);
Expand Down
2 changes: 0 additions & 2 deletions libEPLViz/src/settings/SettingsWindow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ class SettingsWindow : public QDialog {
void plotDelete();
void plotClear();

void lauchCrash();

void createPlot(uint8_t nodeID, uint16_t index, uint8_t subIndex, std::string cs, QColor color);

signals:
Expand Down
32 changes: 0 additions & 32 deletions libEPLViz/ui/settingswindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -3089,22 +3089,6 @@
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="crashButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>75</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border: 0px</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="IH">
Expand Down Expand Up @@ -3745,22 +3729,6 @@
</hint>
</hints>
</connection>
<connection>
<sender>crashButton</sender>
<signal>clicked()</signal>
<receiver>SettingsWindow</receiver>
<slot>lauchCrash()</slot>
<hints>
<hint type="sourcelabel">
<x>708</x>
<y>594</y>
</hint>
<hint type="destinationlabel">
<x>566</x>
<y>340</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>apply()</slot>
Expand Down

0 comments on commit ab03a7e

Please sign in to comment.