indent to 4 spaces

svn path=/trunk/kdebase/konqueror/keditbookmarks/; revision=257985
This commit is contained in:
Alexander Kellett 2003-10-11 13:39:50 +00:00
parent e921983c51
commit 807e476f82
8 changed files with 1184 additions and 1188 deletions

View file

@ -361,7 +361,7 @@ void MoveCommand::unexecute() {
/* -------------------------------------- */
class SortItem {
public:
public:
SortItem(const KBookmark & bk) : m_bk(bk) { ; }
bool operator == (const SortItem & s) {
@ -379,12 +379,12 @@ public:
const KBookmark& bookmark() const {
return m_bk; }
private:
private:
KBookmark m_bk;
};
class SortByName {
public:
public:
static QString key(const SortItem &item) {
return (item.bookmark().isGroup() ? "a" : "b")
+ (item.bookmark().fullText().lower());
@ -484,7 +484,7 @@ KMacroCommand* CmdGen::deleteItems(const QString &commandName,
KMacroCommand* CmdGen::insertMimeSource(
const QString &cmdName, QMimeSource *_data, const QString &addr
) {
) {
QMimeSource *data = _data;
bool modified = false;
const char *format = 0;

View file

@ -29,7 +29,7 @@
HTMLExporter::HTMLExporter()
: m_out(&m_string, IO_WriteOnly) {
m_level = 0;
}
}
void HTMLExporter::write(const KBookmarkGroup &grp, const QString &filename) {
QFile file(filename);

View file

@ -34,7 +34,7 @@ FavIconsItrHolder *FavIconsItrHolder::s_self = 0;
FavIconsItrHolder::FavIconsItrHolder()
: BookmarkIteratorHolder() {
// do stuff
}
}
void FavIconsItrHolder::doItrListChanged() {
KEBApp::self()->setCancelFavIconUpdatesEnabled(count() > 0);
@ -47,7 +47,7 @@ FavIconsItr::FavIconsItr(QValueList<KBookmark> bks)
m_updater = 0;
m_done = true;
}
}
FavIconsItr::~FavIconsItr() {
delete m_updater;
@ -63,10 +63,10 @@ void FavIconsItr::slotDone(bool succeeded) {
delayedEmitNextOne();
}
bool FavIconsItr::isApplicable(const KBookmark &bk) const {
bool FavIconsItr::isApplicable(const KBookmark &bk) const {
return (!bk.isGroup() && !bk.isSeparator()
&& (bk.url().protocol().startsWith("http")) );
}
}
void FavIconsItr::doAction() {
kdDebug() << "FavIconsItr::doAction()" << endl;

View file

@ -86,12 +86,12 @@ ImportCommand* ImportCommand::performImport(const QCString &type, QWidget *top)
return importer;
}
void ImportCommand::doCreateHoldingFolder(KBookmarkGroup &bkGroup) {
void ImportCommand::doCreateHoldingFolder(KBookmarkGroup &bkGroup) {
bkGroup = CurrentMgr::self()->mgr()
->root().createNewFolder(CurrentMgr::self()->mgr(), folder(), false);
bkGroup.internalElement().setAttribute("icon", m_icon);
m_group = bkGroup.address();
}
}
void ImportCommand::execute() {
KBookmarkGroup bkGroup;

View file

@ -325,7 +325,7 @@ SelcAbilities ListView::getSelectionAbilities() const {
return sa;
}
void ListView::handleDropped(KEBListView *lv, QDropEvent *e, QListViewItem *newParent, QListViewItem *itemAfterQLVI) {
void ListView::handleDropped(KEBListView *lv, QDropEvent *e, QListViewItem *newParent, QListViewItem *itemAfterQLVI) {
bool inApp = (e->source() == m_listView->viewport())
|| (m_folderListView && e->source() == m_folderListView->viewport());
bool toOther = e->source() != lv->viewport();
@ -361,7 +361,7 @@ void ListView::handleDropped(KEBListView *lv, QDropEvent *e, QListViewItem *newP
}
CmdHistory::self()->didCommand(mcmd);
}
}
void ListView::updateListView() {
s_selected_addresses.clear();
@ -562,11 +562,11 @@ void ListView::renameNextCell(bool fwd) {
/* -------------------------------------- */
class KeyPressEater : public QObject {
public:
public:
KeyPressEater( QWidget *parent = 0, const char *name = 0 ) {
m_allowedToTab = true;
}
protected:
protected:
bool eventFilter(QObject *, QEvent *);
bool m_allowedToTab;
};
@ -639,19 +639,19 @@ void KEBListView::readonlyFlagInit(bool readonly) {
}
void KEBListView::slotMoved()
{ ListView::self()->handleMoved(this); }
{ ListView::self()->handleMoved(this); }
void KEBListView::slotSelectionChanged()
{ ListView::self()->handleSelectionChanged(this); }
{ ListView::self()->handleSelectionChanged(this); }
void KEBListView::slotCurrentChanged(QListViewItem *a)
{ ListView::self()->handleCurrentChanged(this, a); }
{ ListView::self()->handleCurrentChanged(this, a); }
void KEBListView::slotContextMenu(KListView *a, QListViewItem *b, const QPoint &c)
{ ListView::self()->handleContextMenu(this, a,b,c); }
{ ListView::self()->handleContextMenu(this, a,b,c); }
void KEBListView::slotItemRenamed(QListViewItem *a, const QString &b, int c)
{ ListView::self()->handleItemRenamed(this, a,b,c); }
{ ListView::self()->handleItemRenamed(this, a,b,c); }
void KEBListView::slotDoubleClicked(QListViewItem *a, const QPoint &b, int c)
{ ListView::self()->handleDoubleClicked(this, a,b,c); }
{ ListView::self()->handleDoubleClicked(this, a,b,c); }
void KEBListView::slotDropped(QDropEvent *a, QListViewItem *b, QListViewItem *c)
{ ListView::self()->handleDropped(this, a,b,c); }
{ ListView::self()->handleDropped(this, a,b,c); }
void KEBListView::rename(QListViewItem *qitem, int column) {
KEBListViewItem *item = static_cast<KEBListViewItem *>(qitem);
@ -730,14 +730,12 @@ KEBListViewItem::KEBListViewItem(QListView *parent, const KBookmarkGroup &gp)
// empty folder item
KEBListViewItem::KEBListViewItem(KEBListViewItem *parent, QListViewItem *after)
: QListViewItem(parent, after, i18n("Empty Folder") ), m_emptyFolderPadder(true) {
setPixmap(0, SmallIcon("bookmark"));
}
// group
KEBListViewItem::KEBListViewItem(KEBListViewItem *parent, QListViewItem *after, const KBookmarkGroup &gp)
: QListViewItem(parent, after, gp.fullText()), m_bookmark(gp), m_emptyFolderPadder(false) {
setExpandable(true);
normalConstruct(gp);
}
@ -745,7 +743,6 @@ KEBListViewItem::KEBListViewItem(KEBListViewItem *parent, QListViewItem *after,
// bookmark (first of its group)
KEBListViewItem::KEBListViewItem(KEBListViewItem *parent, const KBookmark & bk)
: QListViewItem(parent, bk.fullText(), bk.url().prettyURL()), m_bookmark(bk), m_emptyFolderPadder(false) {
normalConstruct(bk);
}
@ -758,7 +755,6 @@ KEBListViewItem::KEBListViewItem(KEBListViewItem *parent, QListViewItem *after,
// root bookmark (first of its group)
KEBListViewItem::KEBListViewItem(QListView *parent, const KBookmark & bk)
: QListViewItem(parent, bk.fullText(), bk.url().prettyURL()), m_bookmark(bk), m_emptyFolderPadder(false) {
normalConstruct(bk);
}