Removed some unused headers, and made titlebar buttons visible
on isMinimizable() and isMaximizable() svn path=/trunk/kdebase/kwin/; revision=100360
This commit is contained in:
parent
2333114db6
commit
3ecb89d03f
1 changed files with 3 additions and 11 deletions
|
@ -4,21 +4,14 @@
|
||||||
|
|
||||||
#include <kconfig.h>
|
#include <kconfig.h>
|
||||||
#include <kglobal.h>
|
#include <kglobal.h>
|
||||||
#include <qstring.h>
|
|
||||||
#include "modernsys.h"
|
|
||||||
#include <qapplication.h>
|
|
||||||
#include <qcursor.h>
|
|
||||||
#include <qabstractlayout.h>
|
|
||||||
#include <qlayout.h>
|
#include <qlayout.h>
|
||||||
#include <qtoolbutton.h>
|
|
||||||
#include <qlabel.h>
|
|
||||||
#include <qdrawutil.h>
|
#include <qdrawutil.h>
|
||||||
#include <kpixmapeffect.h>
|
#include <kpixmapeffect.h>
|
||||||
#include <kdrawutil.h>
|
#include <kdrawutil.h>
|
||||||
#include <kapp.h>
|
|
||||||
#include <qbitmap.h>
|
#include <qbitmap.h>
|
||||||
#include "../../workspace.h"
|
#include "../../workspace.h"
|
||||||
#include "../../options.h"
|
#include "../../options.h"
|
||||||
|
#include "modernsys.h"
|
||||||
|
|
||||||
#include "buttondata.h"
|
#include "buttondata.h"
|
||||||
#include "btnhighcolor.h"
|
#include "btnhighcolor.h"
|
||||||
|
@ -26,7 +19,6 @@
|
||||||
using namespace KWinInternal;
|
using namespace KWinInternal;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static unsigned char iconify_bits[] = {
|
static unsigned char iconify_bits[] = {
|
||||||
0x00, 0x00, 0xff, 0xff, 0x7e, 0x3c, 0x18, 0x00};
|
0x00, 0x00, 0xff, 0xff, 0x7e, 0x3c, 0x18, 0x00};
|
||||||
|
|
||||||
|
@ -355,11 +347,11 @@ ModernSys::ModernSys( Workspace *ws, WId w, QWidget *parent,
|
||||||
hb->addWidget(button[BtnSticky]);
|
hb->addWidget(button[BtnSticky]);
|
||||||
button[BtnSticky]->show();
|
button[BtnSticky]->show();
|
||||||
}
|
}
|
||||||
else if (c == 'I') {
|
else if (c == 'I' && isMinimizable()) {
|
||||||
hb->addWidget(button[BtnMinimize]);
|
hb->addWidget(button[BtnMinimize]);
|
||||||
button[BtnMinimize]->show();
|
button[BtnMinimize]->show();
|
||||||
}
|
}
|
||||||
else if (c == 'A') {
|
else if (c == 'A' && isMaximizable()) {
|
||||||
hb->addWidget(button[BtnMaximize]);
|
hb->addWidget(button[BtnMaximize]);
|
||||||
button[BtnMaximize]->show();
|
button[BtnMaximize]->show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue