45 #include <QtGui/qboxlayout.h> 46 #include <QtGui/qlineedit.h> 47 #include <QtGui/qcheckbox.h> 48 #include <QtGui/qlabel.h> 49 #include <QtGui/qtoolbutton.h> 50 #include <QtGui/qevent.h> 51 #include <QtCore/qdebug.h> 139 d->toolClose->setIcon(
QIcon(
QString::fromUtf8(
":/qt/scripttools/debugging/images/%1/closetab.png").arg(system)));
140 d->toolClose->setAutoRaise(
true);
141 d->toolClose->setText(
tr(
"Close"));
145 d->editFind->setMinimumSize(
QSize(150, 0));
147 this,
SLOT(_q_updateButtons()));
149 this,
SLOT(_q_next()));
153 d->toolPrevious->setAutoRaise(
true);
154 d->toolPrevious->setText(
tr(
"Previous"));
156 d->toolPrevious->setIcon(
QIcon(
QString::fromUtf8(
":/qt/scripttools/debugging/images/%1/previous.png").arg(system)));
160 d->toolNext->setAutoRaise(
true);
161 d->toolNext->setText(
tr(
"Next"));
166 d->checkCase =
new QCheckBox(
tr(
"Case Sensitive"),
this);
169 d->checkWholeWords =
new QCheckBox(
tr(
"Whole words"),
this);
172 d->labelWrapped =
new QLabel(
this);
173 d->labelWrapped->setMinimumSize(
QSize(0, 20));
174 d->labelWrapped->setMaximumSize(
QSize(115, 20));
176 d->labelWrapped->setScaledContents(
true);
178 d->labelWrapped->setText(
tr(
"<img src=\":/qt/scripttools/debugging/images/wrap.png\"> Search wrapped"));
182 hboxLayout->
addItem(spacerItem);
184 d->labelWrapped->hide();
186 d->_q_updateButtons();
203 return d->findOptions();
209 return d->editFind->text();
215 d->editFind->setText(text);
226 c =
QColor(255, 102, 102);
228 d->editFind->setPalette(p);
230 d->labelWrapped->hide();
236 d->labelWrapped->setVisible(wrapped);
249 #include "moc_qscriptdebuggercodefinderwidget_p.cpp"
The QColor class provides colors based on RGB, HSV or CMYK values.
The QKeyEvent class describes a key event.
#define QT_END_NAMESPACE
This macro expands to.
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=0)
Adds widget to the end of this box layout, with a stretch factor of stretch and alignment alignment...
void addItem(QLayoutItem *)
Reimplemented Function
int key() const
Returns the code of the key that was pressed or released.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QSpacerItem class provides blank space in a layout.
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
QString text
the line edit's text
static QString fromUtf8(const char *, int size=-1)
Returns a QString initialized with the first size bytes of the UTF-8 string str.
#define Q_DECLARE_PUBLIC(Class)
void setSpacing(int spacing)
Reimplements QLayout::setSpacing().
void setColor(ColorGroup cg, ColorRole cr, const QColor &color)
Sets the color in the specified color group, used for the given color role, to the specified solid co...
The QLabel widget provides a text or image display.
The QHBoxLayout class lines up widgets horizontally.
The QLineEdit widget is a one-line text editor.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QCheckBox widget provides a checkbox with a text label.
The QPalette class contains color groups for each widget state.
The QIcon class provides scalable icons in different modes and states.