コード例 #1
0
//==============================================================================
// Clear
//==============================================================================
void TestDialog::clear()
{
    // Check Model
    if (clientListModel) {
        // Clear
        clientListModel->clear();
    }

    // Set Current Index
    setCurrentIndex(-1);

    // Configure Buttons
    configureButtons();
}
コード例 #2
0
//==============================================================================
// 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);
    }
}
コード例 #3
0
ファイル: window.cpp プロジェクト: OrelSokolov/timetracker
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"));
}
コード例 #4
0
//==============================================================================
// Clinet Updated Slot
//==============================================================================
void TestDialog::clientUpdated()
{
    // Configure Buttons
    configureButtons();
}