Part of fix for ticket 409.

preferencesAboutTextFull
Anatoly Mihalchenko 13 years ago
parent 71d9a71a26
commit 525e706fda
  1. 5
      src/board/UBBoardPaletteManager.cpp
  2. 1
      src/board/UBBoardPaletteManager.h
  3. 3
      src/document/UBDocumentController.cpp
  4. 3
      src/gui/UBTeacherBarWidget.h

@ -1057,3 +1057,8 @@ QRect UBBoardPaletteManager::GetFreeRectGlobalCoords() const
}
return QRect(topLeft, bottomRight);
}
void UBBoardPaletteManager::ForceTeacherBarToSaveData()
{
mpTeacherBarWidget->saveContent();
}

@ -66,6 +66,7 @@ class UBBoardPaletteManager : public QObject
void startDownloads();
void stopDownloads();
QRect GetFreeRectGlobalCoords() const;
void ForceTeacherBarToSaveData();
signals:
void connectToDocController();

@ -534,6 +534,9 @@ void UBDocumentController::duplicateSelectedItem()
if (UBApplication::applicationController->displayMode() != UBApplicationController::Document)
return;
UBBoardPaletteManager* paletteMan = UBApplication::boardController->paletteManager();
//necessary to save active scene teacher bar data, if the scene didn't happen to be changed
if(paletteMan) paletteMan->ForceTeacherBarToSaveData();
if (mSelectionType == Page)
{
QList<QGraphicsItem*> selectedItems = mDocumentUI->thumbnailWidget->selectedItems();

@ -46,9 +46,10 @@ public:
UBTeacherBarWidget(QWidget* parent=0, const char* name="UBTeacherBarWidget");
~UBTeacherBarWidget();
private slots:
public slots:
void saveContent();
void loadContent();
private slots:
void onValueChanged();
void onTitleTextChanged(const QString& text);
void onEquipmentTextChanged(const QString& text);

Loading…
Cancel
Save