Ejemplo n.º 1
0
TEWidget *GLTDisp::openTEWidget(TEWidget *tew, int wtype)
{
  if (wtype < 0) wtype = wtObj;

  if (!tew) {
    tew = new TEWidget(this);
    if (wtype != Qt::Drawer) {
      tew->setMinimumWidth (480);
      tew->setMinimumHeight(480);
    }
    tew->setStyleSheet(styleSheet);
    tew->setWindowFlags((Qt::WindowFlags(wtype)));

    connect(this, SIGNAL(closeTew()), tew, SLOT(close()));
    connect(this, SIGNAL(changeStyle(QString)), 
	       tew, SLOT(changeStyle(QString)));
  }

  QPoint pos = tew->pos();
  if (pos.x() < 0) pos.setX(0);
  if (pos.y() < 0) pos.setY(0);
  tew->move(pos);

  return tew;
}
Ejemplo n.º 2
0
/*!
 \brief

 \fn cdegs_main::openStyleDialog
*/
void cdegs_main::openStyleDialog(){
    style_dialog* diag = new style_dialog(this);
    QObject::connect(diag, SIGNAL(returnStyle(std::string)),
                     this, SLOT(changeStyle(std::string)));
    diag->exec();
    QObject::disconnect(diag, SIGNAL(returnStyle(std::string)),
                     this, SLOT(changeStyle(std::string)));
    delete diag;
}
Ejemplo n.º 3
0
TscalePreviewLabel::TscalePreviewLabel(Tnote::EnameStyle style, bool withAccids, QWidget* parent) :
	TroundedLabel(parent),
	m_withAccids(withAccids)
{
	setAlignment(Qt::AlignCenter);
	changeStyle(style);
}
Ejemplo n.º 4
0
/*!
 * \brief jpconjmain::doInit Initialize the components of the main window
 *
 * This function sets the language and direction of the main window.
 * You can call it in the constructor of this window.
 */
void MainWindow::doInit()
{

    workfrm = new SrchFrame(this);
    ui->formLayout->addWidget(workfrm);
    hasContent = false;
    languageChanged = true;
    currentVerb = "";

    //qDebug()<< QString(VERSION);
    Language::loadTranslations();
    bool rtl = Language::mainWindowDirection(this);

    ui->menu_View->addAction(ui->mainTool->toggleViewAction());
    ui->menu_View->addAction(ui->zoomTool->toggleViewAction());
    //ui->menu_View->addAction(ui->search->toggleViewAction());
    //ui->showt->setLayoutDirection(Qt::LeftToRight);

    //changeStyle(Style::getCurrentStyle());
    Style::addStyleReceiver(this, SLOT(changeStyle(QString)));
    Style::loadStyles();

    Style::addFontReceiver(this, SLOT(changeFont(QString,QString,int)));
    Style::setFont();

    //tray Icon
    trayIconSys = new JpconjTray(this);

    actionShow = new QAction(tr("Show"), this); //qApp->translate, "jpconjmain"
    actionShow->setIcon(QIcon(":/img/show.png"));

    connect(actionShow, SIGNAL(triggered()), trayIconSys, SLOT(showMain()) );
    trayIconSys->addAction(actionShow);
    trayIconSys->addSeparator();
}
Ejemplo n.º 5
0
Spot::Spot(int num, QWidget * parent):
  QLabel(parent)
{
  changeStyle('a');
  switch (num){
  case 1:
    move(13,13);
    break;
  case 2:
    move(3,3);
    break;
  case 3:
    move(3,13);
    break;
  case 4:
    move(3,23);
    break;
  case 5:
    move(23,3);
    break;
  case 6:
    move(23,13);
    break;
  case 7:
    move(23,23);
    break;
  }
}
Ejemplo n.º 6
0
ListCell::ListCell(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ListCell)
{
    ui->setupUi(this);

    changeStyle(Style::Right);
}
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void PipelineFilterWidget::setIsSelected(bool b)
{
    m_IsSelected = b;
    changeStyle();
    if(true == b) {
        emit widgetSelected(this);
    }
}
Ejemplo n.º 8
0
Point::Point(Color color, Place place, QWidget* parent):
  QLabel(parent),
  color(color),
  place(place)
{
  changeStyle('a');

  setAcceptDrops(true);
}
Ejemplo n.º 9
0
MyDialog::MyDialog(QWidget *parent) : QDialog(parent)
   {
     QComboBox *styleComboBox = new QComboBox(this);
     styleComboBox->addItems(QStyleFactory::keys());
     qDebug() << QStyleFactory::keys();
     QLabel *styleLabel = new QLabel(tr("&Style :"),this);
     styleLabel->setBuddy(styleComboBox);
     connect(styleComboBox, SIGNAL(activated(QString)), this, SLOT(changeStyle(QString)));
     styleComboBox->show();
styleLabel->show();
   }
Ejemplo n.º 10
0
WidgetGally::WidgetGally(QWidget *parent)
    : QDialog(parent)
{
    originalPalette = QApplication::palette();
    
    styleComboBox = new QComboBox;
    styleComboBox->addItem("NorwegianWood");
    styleComboBox->addItems(QStyleFactory::keys());

    styleLabel = new QLabel(tr("&Style"));
    styleLabel->setBuddy(styleComboBox);

    useStylePaletteCheckBox = new QCheckBox(tr("&Use style's standard palette"));
    useStylePaletteCheckBox->setChecked(true);

    disableWidgetsCheckBox = new QCheckBox(tr("&Disable widgets"));

    createTopLeftGroupBox();
    createTopRightGroupBox();
    createBottomLeftGroupBox();
    createBottomRightGroupBox();
    createProgressBar();

    connect(styleComboBox, SIGNAL(activated(const QString &)), this, SLOT(changeStyle(const QString &)));
    connect(useStylePaletteCheckBox, SIGNAL(toggled(bool)), this, SLOT(changePalette()));
    connect(disableWidgetsCheckBox, SIGNAL(toggled(bool)), topLeftGroupBox, SLOT(setDisabled(bool)));
    connect(disableWidgetsCheckBox, SIGNAL(toggled(bool)), topRightGroupBox, SLOT(setDisabled(bool)));
    connect(disableWidgetsCheckBox, SIGNAL(toggled(bool)), bottomLeftTabWidget, SLOT(setDisabled(bool)));
    connect(disableWidgetsCheckBox, SIGNAL(toggled(bool)), bottomRightGroupBox, SLOT(setDisabled(bool)));

    QHBoxLayout *topLayout = new QHBoxLayout;
    topLayout->addWidget(styleLabel);
    topLayout->addWidget(styleComboBox);
    topLayout->addStretch(1);
    topLayout->addWidget(useStylePaletteCheckBox);
    topLayout->addWidget(disableWidgetsCheckBox);

    QGridLayout *mainLayout = new QGridLayout;
    mainLayout->addLayout(topLayout, 0, 0, 1, 2);
    mainLayout->addWidget(topLeftGroupBox, 1, 0);
    mainLayout->addWidget(topRightGroupBox, 1, 1);
    mainLayout->addWidget(bottomLeftTabWidget, 2, 0);
    mainLayout->addWidget(bottomRightGroupBox, 2, 1);
    mainLayout->addWidget(progressBar, 3, 0, 1, 2);
    mainLayout->setRowStretch(1, 1);
    mainLayout->setRowStretch(2, 1);
    mainLayout->setColumnStretch(0, 1);
    mainLayout->setColumnStretch(1, 1);
    setLayout(mainLayout);

    setWindowTitle(tr("Styles"));
    changeStyle("NorwegianWood");
}
Ejemplo n.º 11
0
void QgsScaleBarPluginGui::on_buttonBox_accepted()
{
  hide();
  emit changePlacement( cboPlacement->currentIndex() );
  emit changePreferredSize( spnSize->value() );
  emit changeSnapping( chkSnapping->isChecked() );
  emit changeEnabled( chkEnable->isChecked() );
  emit changeStyle( cboStyle->currentIndex() );
  emit changeColor( pbnChangeColor->color() );
  emit refreshCanvas();
  accept();
}
Ejemplo n.º 12
0
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: about(); break;
        case 1: changeStyle((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: changeSize((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: changeSize(); break;
        case 4: changeIcon(); break;
        case 5: addImages(); break;
        case 6: removeAllImages(); break;
        default: ;
        }
        _id -= 7;
    }
    return _id;
}
Ejemplo n.º 13
0
MapWindow::MapWindow(const QMapboxGLSettings &settings)
    : m_map(nullptr, settings, size(), pixelRatio())
    , m_bearingAnimation(&m_map, "bearing")
    , m_zoomAnimation(&m_map, "zoom")
{
    connect(&m_map, SIGNAL(needsRendering()), this, SLOT(updateGL()));

    // Set default location to Helsinki.
    m_map.setCoordinateZoom(QMapbox::Coordinate(60.170448, 24.942046), 14);

    QString styleUrl = qgetenv("MAPBOX_STYLE_URL");
    if (styleUrl.isEmpty()) {
        changeStyle();
    } else {
        m_map.setStyleUrl(styleUrl);
        setWindowTitle(QString("Mapbox GL: ") + styleUrl);
    }

    connect(&m_zoomAnimation, SIGNAL(finished()), this, SLOT(animationFinished()));
    connect(&m_zoomAnimation, SIGNAL(valueChanged(const QVariant&)), this, SLOT(animationValueChanged()));

    setWindowIcon(QIcon(":icon.png"));
}
Ejemplo n.º 14
0
void MapWindow::initializeGL()
{
    QMapbox::initializeGLExtensions();

    m_map.reset(new QMapboxGL(nullptr, m_settings, size(), pixelRatio()));
    connect(m_map.data(), SIGNAL(needsRendering()), this, SLOT(update()));

    // Set default location to Helsinki.
    m_map->setCoordinateZoom(QMapbox::Coordinate(60.170448, 24.942046), 14);

    QString styleUrl = qgetenv("MAPBOX_STYLE_URL");
    if (styleUrl.isEmpty()) {
        changeStyle();
    } else {
        m_map->setStyleUrl(styleUrl);
        setWindowTitle(QString("Mapbox GL: ") + styleUrl);
    }

    m_bearingAnimation = new QPropertyAnimation(m_map.data(), "bearing");
    m_zoomAnimation = new QPropertyAnimation(m_map.data(), "zoom");

    connect(m_zoomAnimation, SIGNAL(finished()), this, SLOT(animationFinished()));
    connect(m_zoomAnimation, SIGNAL(valueChanged(const QVariant&)), this, SLOT(animationValueChanged()));
}
Ejemplo n.º 15
0
void MapWindow::mousePressEvent(QMouseEvent *ev)
{
#if QT_VERSION < 0x050000
    m_lastPos = ev->posF();
#else
    m_lastPos = ev->localPos();
#endif

    if (ev->type() == QEvent::MouseButtonPress) {
        if (ev->buttons() == (Qt::LeftButton | Qt::RightButton)) {
            changeStyle();
        }
    }

    if (ev->type() == QEvent::MouseButtonDblClick) {
        if (ev->buttons() == Qt::LeftButton) {
            m_map->scaleBy(2.0, m_lastPos);
        } else if (ev->buttons() == Qt::RightButton) {
            m_map->scaleBy(0.5, m_lastPos);
        }
    }

    ev->accept();
}
Ejemplo n.º 16
0
void WallpaperChooser::styleSelected(int i) // When the user change the style of the image, inform the desktop to update the wall
{
    emit changeStyle(Style(i)); //  The "i" index is automaticaly converted to the right Style struct
}
Ejemplo n.º 17
0
void GLTDisp::changeAllStyle(const QString &sty)
{
  styleSheet = sty;
  emit changeStyle(styleSheet);
}
Ejemplo n.º 18
0
void MapWindow::keyPressEvent(QKeyEvent *ev)
{
    static const QMapbox::TransitionOptions transition { 300, {} };

    switch (ev->key()) {
    case Qt::Key_S:
        changeStyle();
        break;
    case Qt::Key_L: {
            if (m_sourceAdded) {
                return;
            }

            m_sourceAdded = true;

            QFile geojson(":source.geojson");
            geojson.open(QIODevice::ReadOnly);

            // The data source for the route line and markers
            QVariantMap routeSource;
            routeSource["type"] = "geojson";
            routeSource["data"] = geojson.readAll();
            m_map->addSource("routeSource", routeSource);

            // The route case, painted before the route
            QVariantMap routeCase;
            routeCase["id"] = "routeCase";
            routeCase["type"] = "line";
            routeCase["source"] = "routeSource";
            m_map->addLayer(routeCase);

            m_map->setPaintProperty("routeCase", "line-color", QColor("white"));
            m_map->setPaintProperty("routeCase", "line-width", 20.0);
            m_map->setLayoutProperty("routeCase", "line-join", "round");
            m_map->setLayoutProperty("routeCase", "line-cap", "round");

            // The route, painted on top of the route case
            QVariantMap route;
            route["id"] = "route";
            route["type"] = "line";
            route["source"] = "routeSource";
            m_map->addLayer(route);

            m_map->setPaintProperty("route", "line-color", QColor("blue"));
            m_map->setPaintProperty("route", "line-width", 8.0);
            m_map->setLayoutProperty("route", "line-join", "round");
            m_map->setLayoutProperty("route", "line-cap", "round");

            // Markers at the beginning and end of the route
            m_map->addImage("label-arrow", QImage(":label-arrow.svg"));
            m_map->addImage("label-background", QImage(":label-background.svg"));

            QVariantMap makerArrow;
            makerArrow["id"] = "makerArrow";
            makerArrow["type"] = "symbol";
            makerArrow["source"] = "routeSource";
            m_map->addLayer(makerArrow);

            m_map->setLayoutProperty("makerArrow", "icon-image", "label-arrow");
            m_map->setLayoutProperty("makerArrow", "icon-size", 0.5);
            m_map->setLayoutProperty("makerArrow", "icon-ignore-placement", true);

            QVariantList arrowOffset;
            arrowOffset.append(0.0);
            arrowOffset.append(-15.0);
            m_map->setLayoutProperty("makerArrow", "icon-offset", arrowOffset);

            QVariantMap makerBackground;
            makerBackground["id"] = "makerBackground";
            makerBackground["type"] = "symbol";
            makerBackground["source"] = "routeSource";
            m_map->addLayer(makerBackground);

            m_map->setLayoutProperty("makerBackground", "icon-image", "label-background");
            m_map->setLayoutProperty("makerBackground", "text-field", "{name}");
            m_map->setLayoutProperty("makerBackground", "icon-text-fit", "both");
            m_map->setLayoutProperty("makerBackground", "icon-ignore-placement", true);
            m_map->setLayoutProperty("makerBackground", "text-ignore-placement", true);
            m_map->setLayoutProperty("makerBackground", "text-anchor", "left");
            m_map->setLayoutProperty("makerBackground", "text-size", 16.0);
            m_map->setLayoutProperty("makerBackground", "text-padding", 0.0);
            m_map->setLayoutProperty("makerBackground", "text-line-height", 1.0);
            m_map->setLayoutProperty("makerBackground", "text-max-width", 8.0);

            QVariantList iconTextFitPadding;
            iconTextFitPadding.append(15.0);
            iconTextFitPadding.append(10.0);
            iconTextFitPadding.append(15.0);
            iconTextFitPadding.append(10.0);
            m_map->setLayoutProperty("makerBackground", "icon-text-fit-padding", iconTextFitPadding);

            QVariantList backgroundOffset;
            backgroundOffset.append(-0.5);
            backgroundOffset.append(-1.5);
            m_map->setLayoutProperty("makerBackground", "text-offset", backgroundOffset);

            m_map->setPaintProperty("makerBackground", "text-color", QColor("white"));

            QVariantList filterExpression;
            filterExpression.append("==");
            filterExpression.append("$type");
            filterExpression.append("Point");

            QVariantList filter;
            filter.append(filterExpression);

            m_map->setFilter("makerArrow", filter);
            m_map->setFilter("makerBackground", filter);

            // Tilt the labels when tilting the map and make them larger
            m_map->setLayoutProperty("road-label-large", "text-size", 30.0);
            m_map->setLayoutProperty("road-label-large", "text-pitch-alignment", "viewport");

            m_map->setLayoutProperty("road-label-medium", "text-size", 30.0);
            m_map->setLayoutProperty("road-label-medium", "text-pitch-alignment", "viewport");

            m_map->setLayoutProperty("road-label-small", "text-pitch-alignment", "viewport");
            m_map->setLayoutProperty("road-label-small", "text-size", 30.0);
        }
        break;
    case Qt::Key_Tab:
        m_map->cycleDebugOptions();
        break;
    case Qt::Key_R: {
        m_map->setTransitionOptions(transition);
        if (m_map->hasClass("night")) {
            m_map->removeClass("night");
        } else {
            m_map->addClass("night");
        }
    } break;
    default:
        break;
    }

    ev->accept();
}
Ejemplo n.º 19
0
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void PipelineFilterWidget::setHasPreflightErrors(bool hasErrors)
{
    m_HasPreflightErrors = hasErrors;
    changeStyle();
}
Ejemplo n.º 20
0
IoTivityDialog::IoTivityDialog(QWidget *parent)
    : QDialog(parent)
{
    this->resize(IoTivity::DEMO_WIDTH, IoTivity::DEMO_HEIGHT);

    m_title = new QLabel(tr("IoTivity Demo"), this);
    m_title->setAlignment(Qt::AlignCenter);

    QFont title_font;
    title_font = m_title->font();
    title_font.setPointSize(IoTivity::TITLE_FONT_SIZE);
    title_font.setBold(true);
    title_font.setKerning(true);
    m_title->setFont(title_font);

    m_sensorsGroupBox = createSensorsGroupBox();
    m_ruleGroupBox = createRuleGroupBox();

    m_mainLayout = new QVBoxLayout(this);
    m_mainLayout->addWidget(m_title);
    m_mainLayout->addWidget(m_sensorsGroupBox);
    m_mainLayout->addWidget(m_ruleGroupBox);
    setLayout(m_mainLayout);

    m_mainLayout->setStretch(1, 3);
    m_mainLayout->setStretch(2, 1);

    /* IoTivityClient is a singleton, lifecycle is in whole program.
     * So don't free it.
     * m_pIoTivityClient = std::make_shared< IoTivity::IoTivityClient >();
     */
    m_pIoTivityClient = &IoTivity::IoTivityClient::Instance();

    /* TODO: Merge Added/Removed/Changed interface to one Interface */
    m_pIoTivityClient->addSensorAddedListener(*dynamic_cast< SensorAddedListener* >(m_fanCell));
    m_pIoTivityClient->addSensorRemovedListener(*dynamic_cast< SensorRemovedListener* >(m_fanCell));
    m_pIoTivityClient->addSensorChangedListener(*dynamic_cast< SensorChangedListener* >(m_fanCell));

    m_pIoTivityClient->addSensorAddedListener(*dynamic_cast< SensorAddedListener* >(m_heartRateCell));
    m_pIoTivityClient->addSensorRemovedListener(*dynamic_cast< SensorRemovedListener* >(m_heartRateCell));
    m_pIoTivityClient->addSensorChangedListener(*dynamic_cast< SensorChangedListener* >(m_heartRateCell));

    m_pIoTivityClient->addSensorAddedListener(*dynamic_cast< SensorAddedListener* >(m_gasCell));
    m_pIoTivityClient->addSensorRemovedListener(*dynamic_cast< SensorRemovedListener* >(m_gasCell));
    m_pIoTivityClient->addSensorChangedListener(*dynamic_cast< SensorChangedListener* >(m_gasCell));

    m_pIoTivityClient->addSensorAddedListener(*dynamic_cast< SensorAddedListener* >(m_ledCell));
    m_pIoTivityClient->addSensorRemovedListener(*dynamic_cast< SensorRemovedListener* >(m_ledCell));
    m_pIoTivityClient->addSensorChangedListener(*dynamic_cast< SensorChangedListener* >(m_ledCell));

    m_pIoTivityClient->addSensorAddedListener(*dynamic_cast< SensorAddedListener* >(m_ruleView));
    m_pIoTivityClient->addSensorRemovedListener(*dynamic_cast< SensorRemovedListener* >(m_ruleView));
    m_pIoTivityClient->addSensorChangedListener(*dynamic_cast< SensorChangedListener* >(m_ruleView));

    /* Set style to 'Fusion', option style: 'Windows', 'GTK+' */
    changeStyle("Fusion");

    /* Use multi-case IP address to find gw.sensor */
    m_pIoTivityClient->findResource(OC_MULTICAST_PREFIX, IoTivity::GATEWAY_RULES_TYPE);
    m_pIoTivityClient->findResource(OC_MULTICAST_PREFIX, IoTivity::GATEWAY_RESOURCE_TYPE);
}
Ejemplo n.º 21
0
/** Default constructor */
PopupChatDialog::PopupChatDialog(std::string id, std::string name, 
				QWidget *parent, Qt::WFlags flags)
  : QMainWindow(parent, flags), dialogId(id), dialogName(name),
    lastChatTime(0), lastChatName("")
    
{
  /* Invoke Qt Designer generated QObject setup routine */
  ui.setupUi(this);

  RshareSettings config;
  config.loadWidgetInformation(this);
  
  loadEmoticons();
  
  last_status_send_time = 0 ;
  styleHtm = ":/qss/chat/default.htm";
  
  /* Hide Avatar frame */
  showAvatarFrame(false);

  connect(ui.avatarFrameButton, SIGNAL(toggled(bool)), this, SLOT(showAvatarFrame(bool)));

  connect(ui.actionAvatar, SIGNAL(triggered()),this, SLOT(getAvatar()));

  connect(ui.chattextEdit, SIGNAL(textChanged ( ) ), this, SLOT(checkChat( ) ));
  
  connect(ui.sendButton, SIGNAL(clicked( ) ), this, SLOT(sendChat( ) ));
  connect(ui.addFileButton, SIGNAL(clicked() ), this , SLOT(addExtraFile()));

  connect(ui.textboldButton, SIGNAL(clicked()), this, SLOT(setFont()));  
  connect(ui.textunderlineButton, SIGNAL(clicked()), this, SLOT(setFont()));  
  connect(ui.textitalicButton, SIGNAL(clicked()), this, SLOT(setFont()));
  connect(ui.fontButton, SIGNAL(clicked()), this, SLOT(getFont())); 
  connect(ui.colorButton, SIGNAL(clicked()), this, SLOT(setColor()));
  connect(ui.emoteiconButton, SIGNAL(clicked()), this, SLOT(smileyWidget()));
  connect(ui.styleButton, SIGNAL(clicked()), SLOT(changeStyle()));

  connect(ui.textBrowser, SIGNAL(anchorClicked(const QUrl &)), SLOT(anchorClicked(const QUrl &)));

  // Create the status bar
  resetStatusBar() ;

  ui.textBrowser->setOpenExternalLinks ( false );
  ui.textBrowser->setOpenLinks ( false );

  QString title = QString::fromStdString(name) + " :" + tr(" RetroShare - Encrypted Chat")  ;
  setWindowTitle(title);
  
  //set the default avatar
  //ui.avatarlabel->setPixmap(QPixmap(":/images/retrosharelogo1.png"));
  
  setWindowIcon(QIcon(QString(":/images/rstray3.png")));
  
  ui.textboldButton->setIcon(QIcon(QString(":/images/edit-bold.png")));
  ui.textunderlineButton->setIcon(QIcon(QString(":/images/edit-underline.png")));
  ui.textitalicButton->setIcon(QIcon(QString(":/images/edit-italic.png")));
  ui.fontButton->setIcon(QIcon(QString(":/images/fonts.png")));
  ui.emoteiconButton->setIcon(QIcon(QString(":/images/emoticons/kopete/kopete020.png")));
  ui.styleButton->setIcon(QIcon(QString(":/images/looknfeel.png")));
  
  ui.textboldButton->setCheckable(true);
  ui.textunderlineButton->setCheckable(true);
  ui.textitalicButton->setCheckable(true);

  setAcceptDrops(true);
  ui.chattextEdit->setAcceptDrops(false);
  
  /*Disabled style Button when will switch chat style RetroShare will crash need to be fix */
  //ui.styleButton->setEnabled(false);
   
  /*QMenu * fontmenu = new QMenu();
  fontmenu->addAction(ui.actionBold);
  fontmenu->addAction(ui.actionUnderline);
  fontmenu->addAction(ui.actionItalic);
  fontmenu->addAction(ui.actionStrike);
  ui.fontButton->setMenu(fontmenu);*/
  
  mCurrentColor = Qt::black;
  mCurrentFont = QFont("Comic Sans MS", 10);

  colorChanged(mCurrentColor);
  setFont();

  updateAvatar() ;
  updatePeerAvatar(id) ;
}
Ejemplo n.º 22
0
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void PipelineFilterWidget::setHasPreflightWarnings(bool hasWarnings)
{
    m_HasPreflightWarnings = hasWarnings;
    changeStyle();
}