Beispiel #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);
  }
Beispiel #2
0
 private void save() {
   QAction action = (QAction) QSignalEmitter.signalSender();
   QByteArray fileFormat = QVariant.toByteArray(action.data());
   saveFile(new String(fileFormat.toByteArray()));
 }
Beispiel #3
0
 private void emitCommitData() {
   commitData.emit((QWidget) QSignalEmitter.signalSender());
 }