Skip to content
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

Merged
merged 30 commits into from
Mar 11, 2025
Merged

Absence edit #76

merged 30 commits into from
Mar 11, 2025

Conversation

VWasser
Copy link
Owner

@VWasser VWasser commented Feb 4, 2025

No description provided.

# Conflicts:
#	MyBachelor.pro.user
#	coordinator.cpp
#	coordinator.hpp
#	schedule.cpp
@VWasser VWasser self-assigned this Feb 4, 2025
@VWasser VWasser requested a review from RomanPodymov February 4, 2025 19:11
myWindow->show();
}


void Coordinator::showMenuWindow() {
if (!menuWin) {
Copy link
Collaborator

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, [&](){
Copy link
Collaborator

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.

@VWasser
Copy link
Owner Author

VWasser commented Feb 18, 2025

closed issue #66

@VWasser
Copy link
Owner Author

VWasser commented Feb 19, 2025

closed #78 and #80

QObject::connect(abscWin, &absenceWindow::scheduleAbsenceOpened, this, [&](){
emit scheduleAbsenceSend();
});
windows[Screen::SignIn] = signInWindow;
Copy link
Collaborator

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){
Copy link
Collaborator

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?

Copy link
Owner Author

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.

@RomanPodymov RomanPodymov self-requested a review February 20, 2025 20:30
…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;
Copy link
Collaborator

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{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And what is this?

@RomanPodymov RomanPodymov self-requested a review March 11, 2025 18:26
@RomanPodymov RomanPodymov merged commit 46d136c into main Mar 11, 2025
@RomanPodymov RomanPodymov deleted the absence_edit branch March 11, 2025 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants