Maybe I'm just tired or can't read?
Posted: Thu Aug 27 2020 12:38 am
I thought a slot had to be wrapped in CS_SLOT_1() CS_SLOT_2() in the header file in order for it to be used via connect() as a slot.
Spent most of today trying to track down a focus problem when closing the advanced find window. The text edit tab doesn't actually get keyboard focus. The Close pushbutton always seems to get focus back once again. Finally I went to declare a simple slot just for the button, one that wasn't re-used to clean-up an existing and now unwanted split (so I could cheat with a timer) . . . and this rattled the noodle.
I pulled up the master code that I have from when I pulled/forked/whatever-git-calls-it-when-one-is-working-on-changes-before-a-pull-request
split_window.cpp line 104
mainwindow.h lines 475-480
I'm not saying this should be fixed in Diamond. I'm replacing it right now and not back-linked or whatever GitHub calls it. I'm redoing that little bit of code now.
I'm bringing this up because it is my understanding this should have died at compile time. Perhaps I'm just thick as a brick and making a baseless statement, but that was my understanding of the slot macros.
I'm probably just confused. It has been a long day.
Spent most of today trying to track down a focus problem when closing the advanced find window. The text edit tab doesn't actually get keyboard focus. The Close pushbutton always seems to get focus back once again. Finally I went to declare a simple slot just for the button, one that wasn't re-used to clean-up an existing and now unwanted split (so I could cheat with a timer) . . . and this rattled the noodle.
I pulled up the master code that I have from when I pulled/forked/whatever-git-calls-it-when-one-is-working-on-changes-before-a-pull-request
split_window.cpp line 104
Code: Select all
connect(m_splitClose_PB, &QPushButton::clicked, this, &MainWindow::split_CloseButton);
Code: Select all
// split
void set_splitCombo();
void split_Horizontal();
void split_Vertical();
void split_NameChanged(int data);
void split_CloseButton();
I'm bringing this up because it is my understanding this should have died at compile time. Perhaps I'm just thick as a brick and making a baseless statement, but that was my understanding of the slot macros.
I'm probably just confused. It has been a long day.