void ToolBarPalettes::openPalette()
{
if(openPaletteButton->isChecked())
{
paletteDlg->show();
}
else
{
paletteDlg->hide();
}
}
void ToolBarPalettes::openPalette()
{
if(openPaletteButton->isChecked())
{
paletteDlg->show();
}
else
{
paletteDlg->hide();
}
}
To copy to clipboard, switch view to plain text mode
void ToolBarPalettes::openPalette()
{
if(openPaletteButton->isChecked())
{
QPropertyAnimation *animation = new QPropertyAnimation(paletteDlg, "geometry");
animation->setDuration(3000);
animation
->setStartValue
(QRect(-100,
50, paletteDlg
->width
(), paletteDlg
->height
()));
animation
->setEndValue
(QRect(50,
50, paletteDlg
->width
(), paletteDlg
->height
()));
animation->start();
}
else
{
QPropertyAnimation *animation = new QPropertyAnimation(paletteDlg, "geometry");
animation->setDuration(3000);
animation
->setStartValue
(QRect(50,
50, paletteDlg
->width
(), paletteDlg
->height
()));
animation
->setEndValue
(QRect(-100,
50, paletteDlg
->width
(), paletteDlg
->height
()));
animation->start();
}
}
void ToolBarPalettes::openPalette()
{
if(openPaletteButton->isChecked())
{
QPropertyAnimation *animation = new QPropertyAnimation(paletteDlg, "geometry");
animation->setDuration(3000);
animation->setStartValue(QRect(-100, 50, paletteDlg->width(), paletteDlg->height()));
animation->setEndValue(QRect(50, 50, paletteDlg->width(), paletteDlg->height()));
animation->start();
}
else
{
QPropertyAnimation *animation = new QPropertyAnimation(paletteDlg, "geometry");
animation->setDuration(3000);
animation->setStartValue(QRect(50, 50, paletteDlg->width(), paletteDlg->height()));
animation->setEndValue(QRect(-100, 50, paletteDlg->width(), paletteDlg->height()));
animation->start();
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks