|
|
|
@ -314,8 +314,8 @@ void MainWindow::updateWindowMask()
|
|
|
|
|
{
|
|
|
|
|
TQRegion tqmask = title_bar->getWidgetMask();
|
|
|
|
|
|
|
|
|
|
tqmask.translate(0, tqmask_height);
|
|
|
|
|
tqmask += TQRegion(0, 0, width(), tqmask_height);
|
|
|
|
|
tqmask.translate(0, mask_height);
|
|
|
|
|
tqmask += TQRegion(0, 0, width(), mask_height);
|
|
|
|
|
|
|
|
|
|
setMask(tqmask);
|
|
|
|
|
}
|
|
|
|
@ -951,7 +951,7 @@ void MainWindow::slotIncreaseHeight()
|
|
|
|
|
|
|
|
|
|
int steps = (Settings::steps() == 0) ? 1 : Settings::steps();
|
|
|
|
|
|
|
|
|
|
tqmask_height = (step++ * max_height) / steps;
|
|
|
|
|
mask_height = (step++ * max_height) / steps;
|
|
|
|
|
|
|
|
|
|
if (step >= steps)
|
|
|
|
|
{
|
|
|
|
@ -959,7 +959,7 @@ void MainWindow::slotIncreaseHeight()
|
|
|
|
|
timer.stop();
|
|
|
|
|
disconnect(&timer, TQT_SIGNAL(timeout()), 0, 0);
|
|
|
|
|
|
|
|
|
|
tqmask_height = max_height;
|
|
|
|
|
mask_height = max_height;
|
|
|
|
|
|
|
|
|
|
if (background_changed)
|
|
|
|
|
{
|
|
|
|
@ -971,7 +971,7 @@ void MainWindow::slotIncreaseHeight()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
updateWindowMask();
|
|
|
|
|
title_bar->move(0, tqmask_height);
|
|
|
|
|
title_bar->move(0, mask_height);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::slotDecreaseHeight()
|
|
|
|
@ -980,7 +980,7 @@ void MainWindow::slotDecreaseHeight()
|
|
|
|
|
|
|
|
|
|
int steps = (Settings::steps() == 0) ? 1 : Settings::steps();
|
|
|
|
|
|
|
|
|
|
tqmask_height = (--step * max_height) / steps;
|
|
|
|
|
mask_height = (--step * max_height) / steps;
|
|
|
|
|
|
|
|
|
|
if (step <= 0)
|
|
|
|
|
{
|
|
|
|
@ -995,7 +995,7 @@ void MainWindow::slotDecreaseHeight()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
updateWindowMask();
|
|
|
|
|
title_bar->move(0, tqmask_height);
|
|
|
|
|
title_bar->move(0, mask_height);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::slotInitSkin()
|
|
|
|
@ -1048,7 +1048,7 @@ void MainWindow::slotUpdateSize(int new_width, int new_height, int new_location)
|
|
|
|
|
back_widget->setGeometry(0, 0, width(), height());
|
|
|
|
|
|
|
|
|
|
// Update the window tqmask.
|
|
|
|
|
tqmask_height = (isVisible()) ? max_height : 0;
|
|
|
|
|
mask_height = (isVisible()) ? max_height : 0;
|
|
|
|
|
updateWindowMask();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|