13 saveAction->setShortcut(
tr(
"Ctrl+S"));
15 quitAction->setShortcut(
tr(
"Ctrl+Q"));
57 cell =
table->cellAt(0, 0);
98 tr(
"Save document as:"),
"",
tr(
"XML (*.xml)"));
127 for (
it = tableCell.
begin(); !(
it.atEnd()); ++
it) {
145 tableWidget->setWindowTitle(
tr(
"Table Contents"));
168 QTextTable *childTable = qobject_cast<QTextTable*>(childFrame);
171 processTable(childTable);
173 processFrame(childFrame);
175 }
else if (childBlock.
isValid()) {
176 processBlock(childBlock);
The QAction class provides an abstraction for user commands that can be added to different user inter...
void triggered(bool checked=false)
This signal is emitted when an action is activated by the user; for example, when the user clicks a m...
The QColor class provides colors based on RGB, HSV or CMYK values.
static QString getSaveFileName(QWidget *parent=nullptr, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=nullptr, Options options=Options())
This is a convenience static function that will return a file name selected by the user.
void setCentralWidget(QWidget *widget)
Sets the given widget to be the main window's central widget.
static StandardButton warning(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons=Ok, StandardButton defaultButton=NoButton)
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool isValid() const
Returns true if this text block is valid; otherwise returns false.
QString text() const
Returns the block's contents as plain text.
\reentrant \inmodule QtGui
void insertText(const QString &text)
Inserts text at the current position, using the current character format.
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
QTextCursor textCursor() const
Returns a copy of the QTextCursor that represents the currently visible cursor.
void setForeground(const QBrush &brush)
Sets the foreground brush to the specified brush.
void setBackground(const QBrush &brush)
Sets the brush use to paint the document's background to the brush specified.
QTextCursor firstCursorPosition() const
Returns the first valid cursor position in this cell.
QTextFrame::iterator begin() const
Returns a frame iterator pointing to the beginning of the table's cell.
void setColumnWidthConstraints(const QList< QTextLength > &constraints)
Sets the column width constraints for the table.
QSet< QString >::iterator it
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
GLenum GLenum GLsizei void * table