summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-08-12 18:44:48 +0900
committerMichele Calgaro <[email protected]>2023-08-14 20:29:24 +0900
commit267f704ae325d87d224c0b514aba0c3cd4372529 (patch)
tree8bcf3ad07e035eb600899b013e10da321b0e7e27
parentd5fd16056444572899dc1cd15c970267ec395378 (diff)
downloaddolphin-267f704ae325d87d224c0b514aba0c3cd4372529.tar.gz
dolphin-267f704ae325d87d224c0b514aba0c3cd4372529.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit d4fddb259999a2533a8092f8a9f9775f7054b807)
-rw-r--r--src/dolphin.cpp3
-rw-r--r--src/dolphindetailsview.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/dolphin.cpp b/src/dolphin.cpp
index 9365671..01b5c5f 100644
--- a/src/dolphin.cpp
+++ b/src/dolphin.cpp
@@ -432,11 +432,10 @@ void Dolphin::createFile()
KSortableValueList<CreateFileEntry, TQString>::ConstIterator it = m_createFileTemplates.begin();
KSortableValueList<CreateFileEntry, TQString>::ConstIterator end = m_createFileTemplates.end();
- const TQString senderName(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name());
bool found = false;
CreateFileEntry entry;
while (!found && (it != end)) {
- if ((*it).index() == senderName) {
+ if ((*it).index() == sender()->name()) {
entry = (*it).value();
found = true;
}
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp
index 3738426..8b74e9a 100644
--- a/src/dolphindetailsview.cpp
+++ b/src/dolphindetailsview.cpp
@@ -716,7 +716,7 @@ void DolphinDetailsView::DolphinListViewItem::paintCell(TQPainter* painter,
int alignment)
{
const TQListView* view = listView();
- const bool isActive = TQT_BASE_OBJECT(view->parent()) == TQT_BASE_OBJECT(Dolphin::mainWin().activeView());
+ const bool isActive = (view->parent() == Dolphin::mainWin().activeView());
if (isSelected()) {
// Per default the selection is drawn above the whole width of the item. As a consistent
// behavior with the icon view is wanted, only the the column containing the file name