//============================================================================== // Clear //============================================================================== void TestDialog::clear() { // Check Model if (clientListModel) { // Clear clientListModel->clear(); } // Set Current Index setCurrentIndex(-1); // Configure Buttons configureButtons(); }
//============================================================================== // Set Current Index //============================================================================== void TestDialog::setCurrentIndex(const int& aIndex) { // Check Current Index if (currentIndex != aIndex) { // Set Current Index currentIndex = aIndex; // ... // Configure Buttons configureButtons(); // Emit Current Index Changed Signal emit currentIndexChanged(currentIndex); } }
Window::Window() { //configure timer timer = new QTime; time = new Time; pauseTrackingAction=NULL; pauseIcon = QIcon(":/images/Pause.png"); playIcon = QIcon(":/images/Play.png"); aboutIcon = QIcon(":/images/About.png"); logoIcon = QIcon(":/images/Tracker.png"); configureTrayIcon(); configureButtons(); configureLayout(); setWindowTitle(tr("Time tracker 0.3.1")); }
//============================================================================== // Clinet Updated Slot //============================================================================== void TestDialog::clientUpdated() { // Configure Buttons configureButtons(); }