void ConfigWidget::showEvent(QShowEvent *event) { emit showSignal(false); raise(); activateWindow(); QWidget::showEvent(event); }
void PixmapDialog::showEvent( QShowEvent *event ) { int xoffset = size().width(); int yoffset = size().height(); resized_on_show = false; if ( !resizable ) { int left, top, right, bottom; getLabelOffset( left, top, right, bottom ); if ( size() != QSize( contents_pixmap.width() + left + right, contents_pixmap.height() + top + bottom ) ) { resized_on_show = true; resize( QSize( contents_pixmap.width() + left + right, contents_pixmap.height() + top + bottom ) ); } } else { resized(); } if ( resized_on_show ) { xoffset = xoffset - size().width(); yoffset = yoffset - size().height(); move( pos().x() + xoffset, pos().y() + yoffset ); emit( showSignal() ); return; } Plasma::Dialog::showEvent( event ); }
void showSos(void) { pinMode(LED_BUILTIN, OUTPUT); showSignal(0); showSignal(0); showSignal(0); delay(200); showSignal(1); showSignal(1); showSignal(1); delay(200); showSignal(0); showSignal(0); showSignal(0); delay(1000); }
void EffectsManager::show() { if (!showed) { clearEffects(); view.setFlags(Qt::CustomizeWindowHint | Qt::FramelessWindowHint | Qt::WindowTitleHint); if (QGuiApplication::platformName() == QLatin1String("qnx") || \ QGuiApplication::platformName() == QLatin1String("eglfs")) {\ view.showFullScreen();\ } else {\ view.show();\ }\ emit showSignal(); showed=true; } }
PixmapDialog::PixmapDialog( QWidget *parent ) : Plasma::Dialog( parent ) { setResizeHandleCorners( Plasma::Dialog::NoCorner ); QVBoxLayout *layout = new QVBoxLayout( this ); label = new QLabel; label->setAutoFillBackground ( true ); label->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter ); layout->addWidget( label ); setMinimumSize( 50, 50 ); connect( this, SIGNAL( dialogResized() ), this, SLOT( resized() ) ); connect( this, SIGNAL( showSignal() ), this, SLOT( show() ) ); }
void ConfigWidget::hideEvent(QHideEvent *event) { emit showSignal(true); QWidget::hideEvent(event); }