Hi, I need to repeat 14 case like this below; but for tab2, tab3.....tab14. I there a way to reduce the number of lines (instead of repeat 14 case similar)? thanks
Qt Code:
  1. switch (n) {
  2. case 1: if (tab1->isEnabled()) {
  3. tab1->setDisabled(TRUE);
  4. break;
  5. }
To copy to clipboard, switch view to plain text mode