void FontSetupPage::openCurrentLineBgColorDialog() { QColorDialog *dialog = createColorDialog(INIMANAGER()->currentLineBgColor()); connect(dialog, SIGNAL(colorSelected(QColor)), this, SLOT(currentLineBgColorChanged(QColor))); dialog->open(); }
void FontSetupPage::openBackgroundColorDialog() { QColorDialog *dialog = createColorDialog(INIMANAGER()->backgroundColor()); connect(dialog, SIGNAL(colorSelected(QColor)), this, SLOT(backgroudColorChanged(QColor))); dialog->open(); }
void WangColorView::pickColor() { QColorDialog *colorPicker = new QColorDialog(this); colorPicker->setAttribute(Qt::WA_DeleteOnClose); colorPicker->setCurrentColor(mClickedWangColor->color()); connect(colorPicker, &QColorDialog::colorSelected, this, &WangColorView::colorPicked); colorPicker->open(); }
void ColorWidget::mouseDoubleClickEvent( QMouseEvent * event) { //printf("ColorWidget::mouseDoubleClickEvent:\n"); QColorDialog * dialog = new QColorDialog( clr->c, this); dialog->setModal( false); dialog->setOptions( QColorDialog::NoButtons); connect( dialog, SIGNAL( currentColorChanged( const QColor &)), this, SLOT( currentColorChanged( const QColor &))); connect( dialog, SIGNAL( finished( int )), this, SLOT( finished( int ))); Watch::repaintStart(); dialog->open(); // dialog->open( this, "accepted"); }
void WindowConfiguration_Data_PCI_SPHSystem::setColor() { QColorDialog *colorDialog = new QColorDialog(); connect(colorDialog,SIGNAL(currentColorChanged(QColor)),this, SLOT(changeData(QColor))); colorDialog->open(); }
void MainWindow::on_colorButton_clicked(bool checked) { QColorDialog *colorDialog = new QColorDialog(); colorDialog->open(this, SLOT(cambiarColor(QColor))); }