summaryrefslogtreecommitdiffstats
path: root/sidebar
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-06 12:58:35 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-06 12:58:35 +0900
commit936a0c73f552cce101c9aa5ec64800fad86542a2 (patch)
treed0a1d1bd72fbbbb35917113916e7b362206ae8c3 /sidebar
parent81589f93590dc8daa7a1209fc4b1df60b5132477 (diff)
downloadtde-style-baghira-936a0c73f552cce101c9aa5ec64800fad86542a2.tar.gz
tde-style-baghira-936a0c73f552cce101c9aa5ec64800fad86542a2.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'sidebar')
-rw-r--r--sidebar/baghirasidebar.cpp4
-rw-r--r--sidebar/dndlistbox.cpp22
-rw-r--r--sidebar/linkview.cpp16
3 files changed, 21 insertions, 21 deletions
diff --git a/sidebar/baghirasidebar.cpp b/sidebar/baghirasidebar.cpp
index 5df1453..444affc 100644
--- a/sidebar/baghirasidebar.cpp
+++ b/sidebar/baghirasidebar.cpp
@@ -14,8 +14,8 @@ baghiraSidebar::baghiraSidebar(TDEInstance *inst,TQObject *parent,TQWidget *widg
{
scrollView = new LinkView(widgetParent);
scrollView->setHScrollBarMode(TQScrollView::AlwaysOff);
- connect (scrollView->Hardware(), SIGNAL(clicked(TQListBoxItem *)), this, SLOT(callURL(TQListBoxItem *)));
- connect (scrollView->Locations(), SIGNAL(clicked(TQListBoxItem *)), this, SLOT(callURL(TQListBoxItem *)));
+ connect (scrollView->Hardware(), TQ_SIGNAL(clicked(TQListBoxItem *)), this, TQ_SLOT(callURL(TQListBoxItem *)));
+ connect (scrollView->Locations(), TQ_SIGNAL(clicked(TQListBoxItem *)), this, TQ_SLOT(callURL(TQListBoxItem *)));
}
baghiraSidebar::~baghiraSidebar()
diff --git a/sidebar/dndlistbox.cpp b/sidebar/dndlistbox.cpp
index c476316..83a471b 100644
--- a/sidebar/dndlistbox.cpp
+++ b/sidebar/dndlistbox.cpp
@@ -44,12 +44,12 @@ ResizingLinkBox::ResizingLinkBox( TQWidget * parent, const char * name, WFlags f
size_ = config.readNumEntry (TQString(name) + "_IconSize", 48);
popupMenu = new TDEPopupMenu;
popupMenu->insertTitle (i18n("Icon Size"),122,122);
- popupMenu->insertItem("16x16", this, SLOT(setIconSize(int)),0,16,123);
- popupMenu->insertItem("22x22", this, SLOT(setIconSize(int)),0,22,124);
- popupMenu->insertItem("32x32", this, SLOT(setIconSize(int)),0,32,125);
- popupMenu->insertItem("48x48", this, SLOT(setIconSize(int)),0,48,126);
- popupMenu->insertItem("64x64", this, SLOT(setIconSize(int)),0,64,127);
- popupMenu->insertItem("128x128", this, SLOT(setIconSize(int)),0,128,128);
+ popupMenu->insertItem("16x16", this, TQ_SLOT(setIconSize(int)),0,16,123);
+ popupMenu->insertItem("22x22", this, TQ_SLOT(setIconSize(int)),0,22,124);
+ popupMenu->insertItem("32x32", this, TQ_SLOT(setIconSize(int)),0,32,125);
+ popupMenu->insertItem("48x48", this, TQ_SLOT(setIconSize(int)),0,48,126);
+ popupMenu->insertItem("64x64", this, TQ_SLOT(setIconSize(int)),0,64,127);
+ popupMenu->insertItem("128x128", this, TQ_SLOT(setIconSize(int)),0,128,128);
}
void ResizingLinkBox::insertItem( const TQListBoxItem *lbi, int index )
@@ -274,7 +274,7 @@ ListBoxDevice *MediaListBox::createListBoxDevice(TQStringList & deviceProperties
label = deviceProperties[MEDIALIST_PROPS*n+LABEL];
label = i18n(label.section( " (", 0, 0 ).utf8());
}
- return new ListBoxDevice( icon, size_, label, "system:/media/"+deviceProperties[MEDIALIST_PROPS*n+NAME], deviceProperties[MEDIALIST_PROPS*n+NAME], deviceProperties[MEDIALIST_PROPS*n+DEVICE_NODE], deviceProperties[MEDIALIST_PROPS*n+MOUNTED] == "true", icon.contains("dvd") || icon.contains("cdrom") || icon.contains("cdwriter"),icon.contains("floppy"), devicePopup->insertItem(deviceProperties[MEDIALIST_PROPS*n+NAME], this, SLOT(toggleDevice(int))));
+ return new ListBoxDevice( icon, size_, label, "system:/media/"+deviceProperties[MEDIALIST_PROPS*n+NAME], deviceProperties[MEDIALIST_PROPS*n+NAME], deviceProperties[MEDIALIST_PROPS*n+DEVICE_NODE], deviceProperties[MEDIALIST_PROPS*n+MOUNTED] == "true", icon.contains("dvd") || icon.contains("cdrom") || icon.contains("cdwriter"),icon.contains("floppy"), devicePopup->insertItem(deviceProperties[MEDIALIST_PROPS*n+NAME], this, TQ_SLOT(toggleDevice(int))));
}
int MediaListBox::index (const TQString & name )
@@ -413,7 +413,7 @@ void MediaListBox::mousePressEvent ( TQMouseEvent *mpe )
if (device && device->name().contains("fd"))
{
currentFloppy = device;
- popupMenu->insertItem(i18n("Format disk..."), this, SLOT(kfloppy()),0,_FLOPPYID_,_FLOPPYINDEX_);
+ popupMenu->insertItem(i18n("Format disk..."), this, TQ_SLOT(kfloppy()),0,_FLOPPYID_,_FLOPPYINDEX_);
}
popupMenu->popup(mpe->globalPos());
return;
@@ -451,7 +451,7 @@ ResizingLinkBox( parent, name, f), _poof(0), _poofIndex(0), _poofAnimPix(0), _po
{
setAcceptDrops(true);
dialog = new LinkConfig();
- connect(dialog->buttonOk, SIGNAL(clicked()), this, SLOT(updateLink()));
+ connect(dialog->buttonOk, TQ_SIGNAL(clicked()), this, TQ_SLOT(updateLink()));
setCursor(TQt::PointingHandCursor);
}
@@ -496,7 +496,7 @@ void DnDListBox::runPoof()
_poof->erase();
bitBlt(_poof, 0 ,0, _poofPix, 0, _poofIndex * _poofPix->width(), _poofPix->width(), _poofPix->width(), TQt::AndROP);
++_poofIndex;
- TQTimer::singleShot ( 70, this, SLOT(runPoof()) ); // around 15 fps
+ TQTimer::singleShot ( 70, this, TQ_SLOT(runPoof()) ); // around 15 fps
}
void DnDListBox::dragEnterEvent ( TQDragEnterEvent *dee )
@@ -584,7 +584,7 @@ void DnDListBox::mousePressEvent ( TQMouseEvent *mpe )
if (device)
{
currentItem = device;
- popupMenu->insertItem("Edit link...", this, SLOT(configureLink()),0,0,0);
+ popupMenu->insertItem("Edit link...", this, TQ_SLOT(configureLink()),0,0,0);
}
popupMenu->popup(mpe->globalPos());
return;
diff --git a/sidebar/linkview.cpp b/sidebar/linkview.cpp
index 23b6cbe..b012b20 100644
--- a/sidebar/linkview.cpp
+++ b/sidebar/linkview.cpp
@@ -54,14 +54,14 @@ LinkView::LinkView(TQWidget * parent, const char * name, WFlags f):
locations->setCurrentItem(0);
locations->setSelected( locations->selectedItem(), false );
hardware->installEventFilter(this);
- connect (hardware, SIGNAL(highlighted( int )), this, SLOT(unselectLocations()));
- connect (locations, SIGNAL(highlighted( int )), this, SLOT(unselectHardware()));
- connect (hardware, SIGNAL(scrolled(int,int)), this, SLOT(scrollBy(int,int)));
- connect (locations, SIGNAL(scrolled(int,int)), this, SLOT(scrollBy(int,int)));
- connect (hardware, SIGNAL(itemNumberChanged(bool)), this, SLOT(adjustSplitter2Hardware(bool)));
- connect (locations, SIGNAL(itemNumberChanged(bool)), this, SLOT(adjustSplitter2Locations()));
- TQTimer::singleShot(50, this, SLOT(adjustSplitter2Locations()));
- TQTimer::singleShot(60, this, SLOT(postInstallEventFilter()));
+ connect (hardware, TQ_SIGNAL(highlighted( int )), this, TQ_SLOT(unselectLocations()));
+ connect (locations, TQ_SIGNAL(highlighted( int )), this, TQ_SLOT(unselectHardware()));
+ connect (hardware, TQ_SIGNAL(scrolled(int,int)), this, TQ_SLOT(scrollBy(int,int)));
+ connect (locations, TQ_SIGNAL(scrolled(int,int)), this, TQ_SLOT(scrollBy(int,int)));
+ connect (hardware, TQ_SIGNAL(itemNumberChanged(bool)), this, TQ_SLOT(adjustSplitter2Hardware(bool)));
+ connect (locations, TQ_SIGNAL(itemNumberChanged(bool)), this, TQ_SLOT(adjustSplitter2Locations()));
+ TQTimer::singleShot(50, this, TQ_SLOT(adjustSplitter2Locations()));
+ TQTimer::singleShot(60, this, TQ_SLOT(postInstallEventFilter()));
}
static EventKiller *eventKiller = 0L;