Exemple #1
0
  private void changeStyle(boolean checked) {
    if (!checked) return;

    QAction action = (QAction) QSignalEmitter.signalSender();
    QStyle style = QStyleFactory.create((String) action.data());

    if (style != null) {
      QApplication.setStyle(style);
      QApplication.setPalette(style.standardPalette());
    }

    setTextOnRadioButtons();

    changeSize(true);
  }
 private void save() {
   QAction action = (QAction) QSignalEmitter.signalSender();
   QByteArray fileFormat = QVariant.toByteArray(action.data());
   saveFile(new String(fileFormat.toByteArray()));
 }
Exemple #3
0
 private void emitCommitData() {
   commitData.emit((QWidget) QSignalEmitter.signalSender());
 }