Logo Search packages:      
Sourcecode: kautoclick version File versions  Download package

KAutoClick::KAutoClick (  ) 

Default Constructor

Disable the stop button by default.

On a screenClickRequest, send a click to the screen... smart huh.

Definition at line 34 of file kautoclick.cpp.

References m_widget, sendClick(), stop, and stopClick().

                       : KMainWindow(0, "KAutoClick") {
    QPixmap winIcon("hi32-app-kautoclick.png");
    KWin::setIcons(this->winId(), winIcon, winIcon);
    m_widget = new KAutoClickWidget(this);
    stop = false;
    
    /// Disable the stop button by default.
    m_widget->m_stopButton->setEnabled(false);
    setCentralWidget(m_widget);
    
    /// On a screenClickRequest, send a click to the screen... smart huh.
    connect(m_widget, SIGNAL(screenClickRequest(int)), this, SLOT(sendClick(int)));
    connect(m_widget, SIGNAL(stopClickRequest()), this, SLOT(stopClick()));
}


Generated by  Doxygen 1.6.0   Back to index