Skip to content

Commit

Permalink
Refs issue #43: placed icons and dias in resources dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Amadeus committed Jun 11, 2018
1 parent dc3e3a9 commit bbec3b1
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
Binary file added resources/back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/camera.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/dia1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/dia2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/share.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void MainWindow::showSidebar(

void MainWindow::initButton(QPushButton* button, std::string icon, int row, int column, bool visible) {
const int iconSize = 100;
button->setIcon(QIcon(m_data + "/" + icon.c_str()));
button->setIcon(QIcon("resources/" + QString::fromStdString(icon)));
button->setIconSize(QSize(iconSize, iconSize));
button->setFixedSize(iconSize, iconSize);
button->setStyleSheet("text-align:center; background: black; border: none");
Expand Down Expand Up @@ -319,11 +319,11 @@ void MainWindow::countdownChange() {
void MainWindow::diaChange() {
if (m_dia1) {
m_dia1 = !m_dia1;
this->processAndShowPicture(std::make_shared<QImage>(QString::fromStdString(m_data.toStdString() + "/dia1.png")));
this->processAndShowPicture(std::make_shared<QImage>("resources/dia1.png"));
}
else {
m_dia1 = !m_dia1;
this->processAndShowPicture(std::make_shared<QImage>(QString::fromStdString(m_data.toStdString() + "/dia2.png")));
this->processAndShowPicture(std::make_shared<QImage>("resources/dia2.png"));
}
m_backButton->setVisible(false);
m_shareButton->setVisible(false);
Expand Down

0 comments on commit bbec3b1

Please sign in to comment.