RotatedHeader::RotatedHeader(Qt::Orientation orientation, QWidget *parent) : QHeaderView(orientation, parent) , m_hovered_column(-1) { setClickable(true); setSortIndicatorShown(true); setMouseTracking(true); read_settings(); connect(DT, SIGNAL(settings_changed()), this, SLOT(read_settings())); }
KTExposureHeader::KTExposureHeader(QWidget * parent) : QHeaderView(Qt::Horizontal, parent), m_sectionEdited(-1), m_blockSectionMoved(false) { setClickable(true); //SQA: Disabled while layers movability is enhanced //setMovable(true); connect(this, SIGNAL(sectionDoubleClicked(int)), this, SLOT(showEditorName(int))); m_editor = new QLineEdit(this); m_editor->setFocusPolicy(Qt::ClickFocus); m_editor->setInputMask(""); connect(m_editor, SIGNAL(editingFinished()), this, SLOT(hideEditorName())); m_editor->hide(); }
FilterTableHeader::FilterTableHeader(QTableView* parent) : QHeaderView(Qt::Horizontal, parent) { // Activate the click signals to allow sorting #if QT_VERSION >= 0x050000 setSectionsClickable(true); #else setClickable(true); #endif setSortIndicatorShown(true); // Do some connects: Basically just resize and reposition the input widgets whenever anything changes connect(this, SIGNAL(sectionResized(int,int,int)), this, SLOT(adjustPositions())); connect(parent->horizontalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(adjustPositions())); connect(parent->verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(adjustPositions())); }
ConsoleWindow::ConsoleWindow(const Common::UString &font, uint32 lines, uint32 history, int fontHeight) : _font(FontMan.get(font, fontHeight)), _historySizeMax(history), _historySizeCurrent(0), _historyStart(0), _cursorPosition(0), _overwrite(false), _cursorBlinkState(false), _lastCursorBlink(0) { assert(lines >= 2); assert(history >= lines); setTag("ConsoleWindow"); setClickable(true); _lineHeight = _font.getFont().getHeight() + _font.getFont().getLineSpacing(); _height = floorf(lines * _lineHeight); _prompt = new Graphics::Aurora::Text(_font, ""); _input = new Graphics::Aurora::Text(_font, ""); const float cursorHeight = _font.getFont().getHeight(); _cursor = new Graphics::Aurora::GUIQuad("", 0.0, 1.0, 0.0, cursorHeight); _cursor->setXOR(true); _highlight = new Graphics::Aurora::GUIQuad("", 0.0, 0.0, 0.0, cursorHeight); _highlight->setColor(1.0, 1.0, 1.0, 0.0); _highlight->setXOR(true); _lines.reserve(lines - 1); for (uint32 i = 0; i < (lines - 1); i++) _lines.push_back(new Graphics::Aurora::Text(_font, "")); notifyResized(0, 0, GfxMan.getScreenWidth(), GfxMan.getScreenHeight()); updateScrollbarLength(); updateScrollbarPosition(); clearHighlight(); calculateDistance(); }