class QRulerViewPrivate;class QRulerView: public QAbstractItemView, public QRuler{ Q_OBJECTpublic: QRulerView(Qt::Orientation, QWidget *parent = 0); QRulerView(Qt::Orientation, QRuler::MetricStyle, QWidget *parent = 0); virtual ~GRulerView(); QRect visualRect(const QModelIndex &index) const; void scrollTo(const QModelIndex &index, ScrollHint hint = EnsureVisible); QModelIndex indexAt(const QPoint &point) const; QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers); int horizontalOffset() const; int verticalOffset() const; bool isIndexHidden(const QModelIndex &index) const; void setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command); QRegion visualRegionForSelection(const QItemSelection &selection) const;protected: QRulerView(QRulerViewPrivate &dd, QWidget *parent=0);private: Q_DECLARE_PRIVATE(QRulerView) <- ошибка на этой строке};