int QsciLexer::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QObject::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: colorChanged((*reinterpret_cast< const QColor(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; case 1: eolFillChanged((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; case 2: fontChanged((*reinterpret_cast< const QFont(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; case 3: paperChanged((*reinterpret_cast< const QColor(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; case 4: propertyChanged((*reinterpret_cast< const char*(*)>(_a[1])),(*reinterpret_cast< const char*(*)>(_a[2]))); break; case 5: setAutoIndentStyle((*reinterpret_cast< int(*)>(_a[1]))); break; case 6: setColor((*reinterpret_cast< const QColor(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; case 7: setColor((*reinterpret_cast< const QColor(*)>(_a[1]))); break; case 8: setEolFill((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; case 9: setEolFill((*reinterpret_cast< bool(*)>(_a[1]))); break; case 10: setFont((*reinterpret_cast< const QFont(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; case 11: setFont((*reinterpret_cast< const QFont(*)>(_a[1]))); break; case 12: setPaper((*reinterpret_cast< const QColor(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; case 13: setPaper((*reinterpret_cast< const QColor(*)>(_a[1]))); break; default: ; } _id -= 14; } return _id; }
// A ctor. QsciStyle::QsciStyle(int style) { init(style); QPalette pal = QApplication::palette(); setColor(pal.text().color()); setPaper(pal.base().color()); setFont(QApplication::font()); setEolFill(false); }
// A ctor. QsciStyle::QsciStyle(int style) { init(style); QColorGroup cg = QApplication::palette().active(); setColor(cg.text()); setPaper(cg.base()); setFont(QApplication::font()); setEolFill(false); }
// Refresh the style. void QsciStyle::refresh() { setColor(color()); setPaper(paper()); setFont(font()); setEolFill(eolFill()); setTextCase(textCase()); setVisible(visible()); setChangeable(changeable()); setHotspot(hotspot()); }
// A ctor. QsciStyle::QsciStyle(int style, const QString &description, const QColor &color, const QColor &paper, const QFont &font, bool eolFill) { init(style); setDescription(description); setColor(color); setPaper(paper); setFont(font); setEolFill(eolFill); }