-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Absence edit #76
Absence edit #76
Conversation
# Conflicts: # MyBachelor.pro.user # coordinator.cpp # coordinator.hpp # schedule.cpp
myWindow->show(); | ||
} | ||
|
||
|
||
void Coordinator::showMenuWindow() { | ||
if (!menuWin) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@VWasser Found out that this code was never called. Why? Because menuWin
is never NULL
, you initialise it in Coordinator::Coordinator
and never delete it.
//absence signal recieved | ||
|
||
// Not calling, don't know why | ||
QObject::connect(coordinator, &Coordinator::sendScheduleAbsence, this, [&](){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@VWasser Now I know, why, coordinator
was NULL
at this line, moved it inside Coordinator
.
8c6f334
to
8189d49
Compare
f3aed82
to
a9c3fd3
Compare
closed issue #66 |
QObject::connect(abscWin, &absenceWindow::scheduleAbsenceOpened, this, [&](){ | ||
emit scheduleAbsenceSend(); | ||
}); | ||
windows[Screen::SignIn] = signInWindow; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, looks cool
coordinator.cpp
Outdated
} | ||
hideAllScreens(Screen::Schedule); | ||
} | ||
void Coordinator::hideAllScreens(Screen exeption){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@VWasser Any questions regarding this function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, nor really, just maybe if there is a way to print out the name of enum elemet so i dont have to print out its adress in the debug SHOWING/HIDING.
…edit # Conflicts: # MyBachelor.pro.user # inputabsence.cpp # schedule.cpp
screenwidget.hpp
Outdated
|
||
public: | ||
ScreenWidget(QWidget *parent = nullptr); // : QWidget(parent) { } | ||
virtual void configure(ShowBasicData*, ShowBasicData2*) = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But why 2 params?
screenwidget.hpp
Outdated
Q_OBJECT | ||
}; | ||
|
||
struct ShowBasicData2{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And what is this?
No description provided.