Ejemplo 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)));
}
Ejemplo 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()));
}
Ejemplo n.º 4
0
MyTimer::MyTimer()
{
  timer = new QTimer(this);
    connect(timer,SIGNAL(timeout()),SLOT(mySlot()));
    timer->start(1000);
}
Ejemplo 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()));
}
Ejemplo 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 );
}