You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
607 B
34 lines
607 B
14 years ago
|
|
||
|
#include "UBDocumentToolsPalette.h"
|
||
|
|
||
|
#include <QtGui>
|
||
|
|
||
|
#include "frameworks/UBPlatformUtils.h"
|
||
|
|
||
|
#include "core/UBApplication.h"
|
||
|
#include "gui/UBMainWindow.h"
|
||
|
|
||
|
|
||
|
UBDocumentToolsPalette::UBDocumentToolsPalette(QWidget *parent)
|
||
|
: UBActionPalette(Qt::TopRightCorner, parent)
|
||
|
{
|
||
|
QList<QAction*> actions;
|
||
|
|
||
|
if (UBPlatformUtils::hasVirtualKeyboard())
|
||
|
{
|
||
|
actions << UBApplication::mainWindow->actionVirtualKeyboard;
|
||
|
}
|
||
|
|
||
|
setActions(actions);
|
||
|
setButtonIconSize(QSize(42, 42));
|
||
|
|
||
|
adjustSizeAndPosition();
|
||
|
}
|
||
|
|
||
|
|
||
|
UBDocumentToolsPalette::~UBDocumentToolsPalette()
|
||
|
{
|
||
|
// NOOP
|
||
|
}
|
||
|
|