Drop TQT_BASE_OBJECT* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/45/head
Michele Calgaro 1 year ago
parent 172024abe6
commit 20cfc90d4f
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1110,7 +1110,7 @@ void Playlist::decode(TQMimeSource *s, PlaylistItem *item)
bool Playlist::eventFilter(TQObject *watched, TQEvent *e) bool Playlist::eventFilter(TQObject *watched, TQEvent *e)
{ {
if(TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(header())) { if(watched == header()) {
switch(e->type()) { switch(e->type()) {
case TQEvent::MouseMove: case TQEvent::MouseMove:
{ {

@ -136,7 +136,7 @@ void SearchLine::setFocus()
bool SearchLine::eventFilter(TQObject *watched, TQEvent *e) bool SearchLine::eventFilter(TQObject *watched, TQEvent *e)
{ {
if(TQT_BASE_OBJECT(watched) != TQT_BASE_OBJECT(m_lineEdit) || e->type() != TQEvent::KeyPress) if(watched != m_lineEdit || e->type() != TQEvent::KeyPress)
return TQHBox::eventFilter(watched, e); return TQHBox::eventFilter(watched, e);
TQKeyEvent *key = TQT_TQKEYEVENT(e); TQKeyEvent *key = TQT_TQKEYEVENT(e);

@ -179,7 +179,7 @@ bool StatusLabel::eventFilter(TQObject *o, TQEvent *e)
if(e->type() == TQEvent::MouseButtonRelease && if(e->type() == TQEvent::MouseButtonRelease &&
mouseEvent->button() == Qt::LeftButton) mouseEvent->button() == Qt::LeftButton)
{ {
if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_itemTimeLabel)) { if(o == m_itemTimeLabel) {
m_showTimeRemaining = !m_showTimeRemaining; m_showTimeRemaining = !m_showTimeRemaining;
updateTime(); updateTime();
} }

@ -104,7 +104,7 @@ void ViewMode::paintCell(PlaylistBox::Item *item,
bool ViewMode::eventFilter(TQObject *watched, TQEvent *e) bool ViewMode::eventFilter(TQObject *watched, TQEvent *e)
{ {
if(m_visible && TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(m_playlistBox->viewport()) && e->type() == TQEvent::Resize) { if(m_visible && watched == m_playlistBox->viewport() && e->type() == TQEvent::Resize) {
TQResizeEvent *re = TQT_TQRESIZEEVENT(e); TQResizeEvent *re = TQT_TQRESIZEEVENT(e);
if(re->size().width() != re->oldSize().width()) if(re->size().width() != re->oldSize().width())
m_needsRefresh = true; m_needsRefresh = true;

Loading…
Cancel
Save