Esempio n. 1
0
SmTreeView::SmTreeView(QWidget *parent):QTreeView(parent)
{

    tree_model_=0;
    sm_layer_color_dialog_=0;
    connect(this,SIGNAL(doubleClicked(QModelIndex)),this,SLOT(mySlot(QModelIndex)));
}
Esempio n. 2
0
MyTimer::MyTimer()
{
    tm=new Tamagotchi();
    timer=new QTimer(this);
    connect(timer,SIGNAL(timeout()),this,SLOT(mySlot()));
    timer->start(2000);
}
HelloWorldWidget::HelloWorldWidget(QWidget *parent)
    : QWidget(parent)
{
    setupUi(this);

    QObject::connect(pushButton, SIGNAL(clicked()),
                     this, SLOT(mySlot()));
}
Esempio n. 4
0
MyTimer::MyTimer()
{
  timer = new QTimer(this);
    connect(timer,SIGNAL(timeout()),SLOT(mySlot()));
    timer->start(1000);
}
Esempio n. 5
0
QwwColorComboBoxTaskMenuExtension::QwwColorComboBoxTaskMenuExtension(QwwColorComboBox * widget, QObject * parent) : QObject(parent) {
    this->widget = widget;
    editAction = new QAction(tr("Edit colors..."), this);
    connect(editAction, SIGNAL(triggered()), this, SLOT(mySlot()));
}
Esempio n. 6
0
TsignalApp::TsignalApp()
{
	connect( this, SIGNAL( mySignal() ), SLOT( mySlot() ) );
	connect( this, SIGNAL( mySignal( int ), SLOT( mySlot( int ) ) );
	connect( this, SIGNAL( mySignalParam( int, int ), SLOT( mySlotParam( int, int );
}