unbreak compilation (gcc 3.4+)

svn path=/trunk/kdebase/kcontrol/; revision=239225
This commit is contained in:
Dirk Mueller 2003-07-26 10:41:28 +00:00
parent ca09935838
commit 6bbbe69c0e
40 changed files with 44 additions and 44 deletions

View file

@ -109,7 +109,7 @@ public:
QCString windowRole; QCString windowRole;
}; };
}; }
// put all externs before the namespace statement to allow the linker // put all externs before the namespace statement to allow the linker
// to resolve them properly // to resolve them properly

View file

@ -527,6 +527,6 @@ public:
void setShade( bool , int ){} void setShade( bool , int ){}
}; };
}; }
#endif #endif

View file

@ -142,7 +142,7 @@ B2Button::B2Button(Client *_client, QWidget *parent, const QString& tip)
client = _client; client = _client;
useMiniIcon = false; useMiniIcon = false;
setFixedSize(16,16); setFixedSize(16,16);
}; }
QSize B2Button::sizeHint() const QSize B2Button::sizeHint() const
@ -958,7 +958,7 @@ void B2Client::positionButtons()
titlebar->move(bar_x_ofs, 0); titlebar->move(bar_x_ofs, 0);
} }
}; }
extern "C" extern "C"
{ {

View file

@ -126,6 +126,6 @@ private:
int in_unobs; int in_unobs;
}; };
}; }
#endif #endif

View file

@ -1100,7 +1100,7 @@ void KDEDefaultClient::menuButtonReleased()
closeWindow(); closeWindow();
} }
}; }
// Extended KWin plugin interface // Extended KWin plugin interface
extern "C" extern "C"

View file

@ -117,7 +117,7 @@ class KDEDefaultClient : public Client
bool m_closing; bool m_closing;
}; };
}; }
#endif #endif
// vim: ts=4 // vim: ts=4

View file

@ -1457,7 +1457,7 @@ Client::MousePosition KeramikClient::mousePosition( const QPoint &p ) const
return Nowhere; return Nowhere;
} }
}; // namespace Keramik } // namespace Keramik

View file

@ -799,7 +799,7 @@ void KWMThemeClient::init()
// //
} }
}; }
extern "C" extern "C"
{ {

View file

@ -54,7 +54,7 @@ private:
QGridLayout* layout; QGridLayout* layout;
}; };
}; }
#endif #endif

View file

@ -683,7 +683,7 @@ LaptopClient::mousePosition( const QPoint& p ) const
return m; return m;
} }
}; }
extern "C" extern "C"
{ {

View file

@ -82,6 +82,6 @@ private:
int lastBufferWidth; int lastBufferWidth;
}; };
}; }
#endif #endif

View file

@ -615,7 +615,7 @@ Client::MousePosition ModernSys::mousePosition( const QPoint& p) const
return m; return m;
} }
}; }
// KWin extended plugin interface // KWin extended plugin interface
extern "C" extern "C"

View file

@ -68,6 +68,6 @@ private:
QString oldTitle; QString oldTitle;
}; };
}; }
#endif #endif

View file

@ -798,7 +798,7 @@ void QuartzClient::menuButtonPressed()
button[BtnMenu]->setDown(false); button[BtnMenu]->setDown(false);
} }
}; }
// Extended KWin plugin interface // Extended KWin plugin interface
///////////////////////////////// /////////////////////////////////

View file

@ -112,7 +112,7 @@ class QuartzClient : public Client
QSpacerItem* titlebar; QSpacerItem* titlebar;
}; };
}; }
#endif #endif
// vim: ts=4 // vim: ts=4

View file

@ -784,7 +784,7 @@ void GalliumClient::menuButtonReleased()
closeWindow(); closeWindow();
} }
}; }
extern "C" extern "C"
{ {

View file

@ -98,7 +98,7 @@ class GalliumClient : public Client
bool closing; bool closing;
}; };
}; }
#endif #endif
// vim: ts=4 // vim: ts=4

View file

@ -511,7 +511,7 @@ WebClient::animateIconifyOrDeiconify(bool /* iconify */)
// Nice and simple ;) // Nice and simple ;)
} }
}; }
#include "Web.moc" #include "Web.moc"
// vim:ts=2:sw=2:tw=78:set et: // vim:ts=2:sw=2:tw=78:set et:

View file

@ -252,7 +252,7 @@ WebButton::resizeEvent(QResizeEvent *)
repaint(); repaint();
} }
}; }
#include "WebButton.moc" #include "WebButton.moc"
// vim:ts=2:sw=2:tw=78:set et: // vim:ts=2:sw=2:tw=78:set et:

View file

@ -44,7 +44,7 @@ WebButtonClose::clickEvent(int /* button */)
emit(closeWindow()); emit(closeWindow());
} }
}; }
#include "WebButtonClose.moc" #include "WebButtonClose.moc"
// vim:ts=2:sw=2:tw=78:set et: // vim:ts=2:sw=2:tw=78:set et:

View file

@ -45,7 +45,7 @@ WebButtonHelp::clickEvent(int /* button */)
emit(help()); emit(help());
} }
}; }
#include "WebButtonHelp.moc" #include "WebButtonHelp.moc"
// vim:ts=2:sw=2:tw=78:set et: // vim:ts=2:sw=2:tw=78:set et:

View file

@ -44,7 +44,7 @@ WebButtonIconify::clickEvent(int /* button */)
emit(iconify()); emit(iconify());
} }
}; }
#include "WebButtonIconify.moc" #include "WebButtonIconify.moc"
// vim:ts=2:sw=2:tw=78:set et: // vim:ts=2:sw=2:tw=78:set et:

View file

@ -44,7 +44,7 @@ WebButtonLower::clickEvent(int /* button */)
emit(lowerWindow()); emit(lowerWindow());
} }
}; }
#include "WebButtonLower.moc" #include "WebButtonLower.moc"
// vim:ts=2:sw=2:tw=78:set et: // vim:ts=2:sw=2:tw=78:set et:

View file

@ -58,7 +58,7 @@ WebButtonMaximize::clickEvent(int button)
emit(maximize(button)); emit(maximize(button));
} }
}; }
#include "WebButtonMaximize.moc" #include "WebButtonMaximize.moc"
// vim:ts=2:sw=2:tw=78:set et: // vim:ts=2:sw=2:tw=78:set et:

View file

@ -58,7 +58,7 @@ WebButtonSticky::clickEvent(int /* button */)
emit(toggleSticky()); emit(toggleSticky());
} }
}; }
#include "WebButtonSticky.moc" #include "WebButtonSticky.moc"
// vim:ts=2:sw=2:tw=78:set et: // vim:ts=2:sw=2:tw=78:set et:

View file

@ -25,6 +25,6 @@ class GeometryTip: public QLabel
const Client* c; const Client* c;
}; };
}; }
#endif #endif

View file

@ -137,7 +137,7 @@ ButtonSource::ButtonSource( QWidget* parent, const char* name )
spacerCount = 0; // No spacers inserted yet spacerCount = 0; // No spacers inserted yet
setAcceptDrops( TRUE ); setAcceptDrops( TRUE );
}; }
ButtonSource::~ButtonSource() ButtonSource::~ButtonSource()

View file

@ -43,7 +43,7 @@
// KCModule plugin interface // KCModule plugin interface
// ========================= // =========================
typedef KGenericFactory<KWinDecorationModule, QWidget> KWinDecoFactory; typedef KGenericFactory<KWinDecorationModule, QWidget> KWinDecoFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kwindecoration, KWinDecoFactory("kcmkwindecoration") ); K_EXPORT_COMPONENT_FACTORY( kcm_kwindecoration, KWinDecoFactory("kcmkwindecoration") )
KWinDecorationModule::KWinDecorationModule(QWidget* parent, const char* name, const QStringList &) KWinDecorationModule::KWinDecorationModule(QWidget* parent, const char* name, const QStringList &)
: DCOPObject("KWinClientDecoration"), KCModule(KWinDecoFactory::instance(), parent, name), : DCOPObject("KWinClientDecoration"), KCModule(KWinDecoFactory::instance(), parent, name),

View file

@ -23,6 +23,6 @@ private:
Workspace* workspace; Workspace* workspace;
}; };
}; }
#endif #endif

View file

@ -112,7 +112,7 @@ class KWinWidgetButton: public QWidget
}; };
}; }
#endif #endif
// vim: ts=4 // vim: ts=4

View file

@ -39,7 +39,7 @@ using namespace KWinInternal;
namespace KWinInternal { namespace KWinInternal {
Options* options; Options* options;
}; }
Atoms* atoms; Atoms* atoms;

View file

@ -33,7 +33,7 @@ public:
int electric_border_delay; int electric_border_delay;
bool show_geometry_tip; bool show_geometry_tip;
}; };
}; }
#define colors (d->colors) #define colors (d->colors)
#define cg (d->cg) #define cg (d->cg)

View file

@ -364,6 +364,6 @@ private:
extern Options* options; extern Options* options;
}; // namespace } // namespace
#endif #endif

View file

@ -35,7 +35,7 @@ public:
Workspace* m_WorkspacePtr; Workspace* m_WorkspacePtr;
}; };
}; }
Placement::Placement(Workspace* w) Placement::Placement(Workspace* w)
{ {

View file

@ -43,6 +43,6 @@ private:
}; };
}; }
#endif #endif

View file

@ -40,6 +40,6 @@ protected:
QCString defaultPlugin; QCString defaultPlugin;
}; };
}; }
#endif #endif

View file

@ -38,6 +38,6 @@ private:
QString m_infoString; QString m_infoString;
}; };
}; }
#endif #endif

View file

@ -82,6 +82,6 @@ inline TabBox::Mode TabBox::mode() const
return m; return m;
} }
}; }
#endif #endif

View file

@ -135,7 +135,7 @@ public:
QRect* workarea; // array of workareas for virtual desktops QRect* workarea; // array of workareas for virtual desktops
}; };
}; }
using namespace KWinInternal; using namespace KWinInternal;
@ -3009,10 +3009,10 @@ void Workspace::slotGrabWindow()
QMemArray<QRect> maskedAwayRects = maskedAway.rects(); QMemArray<QRect> maskedAwayRects = maskedAway.rects();
//Fill the masked away area with black. //Fill the masked away area with black.
QPainter p(&p); QPainter pt(&p);
for (uint pos = 0; pos < maskedAwayRects.count(); pos++) for (uint pos = 0; pos < maskedAwayRects.count(); pos++)
p.fillRect(maskedAwayRects[pos], Qt::black); pt.fillRect(maskedAwayRects[pos], Qt::black);
p.end(); pt.end();
} }
} }

View file

@ -522,6 +522,6 @@ inline void Workspace::showWindowMenu(QPoint pos, Client* cl)
} }
}; }
#endif #endif