Example #1
0
QVariant KWidget::itemChange( GraphicsItemChange change, const QVariant & value )
{
    if(change == QGraphicsItem::ItemParentHasChanged
        || change == QGraphicsItem::ItemParentChange)
    {
        clearThemeCheckFlag();
    }
    else if(change == QGraphicsItem::ItemScenePositionHasChanged)
    {
        emit scenePosition(value.toPointF());
    }
    else if(change == QGraphicsItem::ItemVisibleHasChanged)
    {
        bool bvis = isVisible();
        visibleEvent(bvis);
        if(bvis)
        {
            showEvent();
        }
        else
        {
            hideEvent();
        }
    }
    return QGraphicsWidget::itemChange(change, value);
}
Example #2
0
ModelFixForm::ModelFixForm(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f)
{
	map<QString, attribs_map> confs=GeneralConfigWidget::getConfigurationParams();

	setupUi(this);
	hideEvent(nullptr);

	PgModelerUiNS::configureWidgetFont(invalid_cli_lbl, PgModelerUiNS::MEDIUM_FONT_FACTOR);
	PgModelerUiNS::configureWidgetFont(message_lbl, PgModelerUiNS::MEDIUM_FONT_FACTOR);
	PgModelerUiNS::configureWidgetFont(not_found_lbl, PgModelerUiNS::MEDIUM_FONT_FACTOR);

	//Configuring font style for output widget
	if(!confs[ParsersAttributes::CONFIGURATION][ParsersAttributes::CODE_FONT].isEmpty())
	{
		double size=confs[ParsersAttributes::CONFIGURATION][ParsersAttributes::CODE_FONT_SIZE].toDouble();
		if(size < 5.0f) size=5.0f;

		output_txt->setFontFamily(confs[ParsersAttributes::CONFIGURATION][ParsersAttributes::CODE_FONT]);
		output_txt->setFontPointSize(size);
	}

	connect(&pgmodeler_cli_proc, SIGNAL(readyReadStandardOutput()), this, SLOT(updateOutput()));
	connect(&pgmodeler_cli_proc, SIGNAL(readyReadStandardError()), this, SLOT(updateOutput()));
	connect(&pgmodeler_cli_proc, SIGNAL(finished(int)), this, SLOT(handleProcessFinish(int)));
	connect(fix_btn, SIGNAL(clicked()), this, SLOT(fixModel()));
	connect(sel_cli_exe_tb, SIGNAL(clicked()), this, SLOT(selectFile()));
	connect(sel_in_file_tb, SIGNAL(clicked()), this, SLOT(selectFile()));
	connect(sel_out_file_tb, SIGNAL(clicked()), this, SLOT(selectFile()));
	connect(input_file_edt, SIGNAL(textChanged(QString)), this, SLOT(enableFix()));
	connect(output_file_edt, SIGNAL(textChanged(QString)), this, SLOT(enableFix()));
	connect(pgmodeler_cli_edt, SIGNAL(textChanged(QString)), this, SLOT(enableFix()));
	connect(close_btn, SIGNAL(clicked()), this, SLOT(reject()));
}
void QAbstractPageSetupDialog_QtDShell::__override_hideEvent(QHideEvent*  arg__1, bool static_call)
{
    if (static_call) {
        QWidget::hideEvent((QHideEvent* )arg__1);
    } else {
        hideEvent((QHideEvent* )arg__1);
    }
}
Example #4
0
void QDateEdit_QtDShell::__override_hideEvent(QHideEvent*  event0, bool static_call)
{
    if (static_call) {
        QAbstractSpinBox::hideEvent((QHideEvent* )event0);
    } else {
        hideEvent((QHideEvent* )event0);
    }
}
Example #5
0
void QStatusBar_QtDShell::__override_hideEvent(QHideEvent*  arg__1, bool static_call)
{
    if (static_call) {
        QWidget::hideEvent((QHideEvent* )arg__1);
    } else {
        hideEvent((QHideEvent* )arg__1);
    }
}
Example #6
0
void QFontComboBox_QtDShell::__override_hideEvent(QHideEvent*  e0, bool static_call)
{
    if (static_call) {
        QComboBox::hideEvent((QHideEvent* )e0);
    } else {
        hideEvent((QHideEvent* )e0);
    }
}
Example #7
0
bool DetectorWidget::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: propagateCueUpdate((const QString&)static_QUType_QString.get(_o+1)); break;
    case 1: propagateDetectorUpdate((const QString&)static_QUType_QString.get(_o+1)); break;
    case 2: hideEvent((QHideEvent*)static_QUType_ptr.get(_o+1)); break;
    case 3: closeEvent((QCloseEvent*)static_QUType_ptr.get(_o+1)); break;
    case 4: loadDetector(); break;
    case 5: saveDetector(); break;
    case 6: clearDetector(); break;
    default:
	return QWidget::qt_invoke( _id, _o );
    }
    return TRUE;
}
Example #8
0
ComboBoxToolTip::ComboBoxToolTip(QWidget *parent, const char *name, const char* rtips[], const int& r_size  )
        : QWidget( parent )
{

 // tool tip for ListBoxItems inside combo boxes
 // created from scratch since ListBoxItems ain't widgets

//qt3to4 -- BW
//tipLabel = new QLabel( QApplication::desktop(), "toolTipTip",Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::WStyle_Tool | Qt::WX11BypassWM );
tipLabel = new QLabel("toolTipTip",parent,Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint |Qt::Tool | Qt::X11BypassWindowManagerHint );

 tipLabel->setPalette( QToolTip::palette());
 tipLabel->hide();
 hide();

//qt3to4 -- BW
 if ( parent->inherits( "QComboBox" ) ){
//if ( parent->inherits( "Q3ComboBox" ) ){
      //qt3to4 -- BW
      //lb = ((QComboBox*)parent)->listBox();
      //lb = ((Q3ComboBox*)parent)->listBox();
      lb = (QComboBox*)parent;
      eFilter = new MEventFilter( lb , 0);
  }
 else {
      eFilter = new MEventFilter( parent, 0);
  }

connect( eFilter, SIGNAL( mouseMoving() ), this, SLOT( MovingMouseOnBox() ) );
connect( eFilter, SIGNAL( hideEvent() ), tipLabel, SLOT( hide() ) );
//connect( parent, SIGNAL( activated(int) ), this, SLOT( showTipLabel( int) ) );
//qt3to4 -- BW -- this causes a bus error and is actually not a QComboBox signal
//connect( lb, SIGNAL( selected(int) ), this, SLOT( showTipLabel( int) ) );
connect( eFilter, SIGNAL( mouseButRelease() ), tipLabel, SLOT( hide() ) );
//connect( eFilter, SIGNAL( mouseButPress() ), this, SLOT( MovingMouseOnBox()  ) );
tips = rtips;
tipSize = r_size;;

// this gives you the name of the object <= useful for debugging
//cout << "No. of tips for "<< parent->name()<<  " : " << tipSize << endl;

}
Example #9
0
void DhQGLWidget::DvhhideEvent(QHideEvent* x1) {
  return hideEvent(x1);
}
Example #10
0
void DhQPushButton::DvhhideEvent(QHideEvent* x1) {
  return hideEvent(x1);
}
Example #11
0
void DhQAbstractSpinBox::DvhhideEvent(QHideEvent* x1) {
  return hideEvent(x1);
}
Example #12
0
void DhQGroupBox::DvhhideEvent(QHideEvent* x1) {
  return hideEvent(x1);
}
Example #13
0
void DhQSlider::DvhhideEvent(QHideEvent* x1) {
  return hideEvent(x1);
}
Example #14
0
bool CLockedEdit::eventFilter(QObject *object, QEvent *event)
{
   if ( event->type() == QEvent::Show )
   {
      showEvent(dynamic_cast<QShowEvent*>(event));
      return true;
   }
   if ( event->type() == QEvent::ShowToParent )
   {
      showEvent(dynamic_cast<QShowEvent*>(event));
      return true;
   }
   if ( event->type() == QEvent::Hide )
   {
      hideEvent(dynamic_cast<QHideEvent*>(event));
      return true;
   }
   if ( event->type() == QEvent::Move )
   {
      moveEvent(dynamic_cast<QMoveEvent*>(event));
      return true;
   }
   if ( event->type() == QEvent::Paint )
   {
      paintEvent(dynamic_cast<QPaintEvent*>(event));
      return true;
   }
   if ( event->type() == QEvent::FocusIn )
   {
      focusInEvent(dynamic_cast<QFocusEvent*>(event));
      return true;
   }
   if ( event->type() == QEvent::FocusOut )
   {
      focusOutEvent(dynamic_cast<QFocusEvent*>(event));
      return true;
   }
   if ( event->type() == QEvent::MouseButtonPress )
   {
      mousePressEvent(dynamic_cast<QMouseEvent*>(event));
      return true;
   }
   if ( event->type() == QEvent::MouseButtonRelease )
   {
      mouseReleaseEvent(dynamic_cast<QMouseEvent*>(event));
      return true;
   }
   if ( event->type() == QEvent::MouseButtonDblClick )
   {
      mouseDoubleClickEvent(dynamic_cast<QMouseEvent*>(event));
      return true;
   }
   if ( event->type() == QEvent::MouseMove )
   {
      mouseMoveEvent(dynamic_cast<QMouseEvent*>(event));
      return true;
   }
   if ( event->type() == QEvent::Wheel )
   {
      wheelEvent(dynamic_cast<QWheelEvent*>(event));
      return true;
   }
   if ( event->type() == QEvent::Resize )
   {
      resizeEvent(dynamic_cast<QResizeEvent*>(event));
      return true;
   }
   if ( event->type() == QEvent::KeyPress )
   {
      keyPressEvent(dynamic_cast<QKeyEvent*>(event));
      return true;
   }
   if ( event->type() == QEvent::KeyRelease )
   {
      keyReleaseEvent(dynamic_cast<QKeyEvent*>(event));
      return true;
   }
//   qDebug("eventFilter: unhandled %d object %s", event->type(), object->objectName().toAscii().constData());
   return false;
}
Example #15
0
void DhQScrollArea::DvhhideEvent(QHideEvent* x1) {
  return hideEvent(x1);
}
Example #16
0
void DhQStackedWidget::DvhhideEvent(QHideEvent* x1) {
    return hideEvent(x1);
}