code: def saveProfileLayout(self, profile):
          
          if not self.viewWidget():
              text = self.profileText()
              QMessageBox.information(self.window(), 
                                      'Could Not Save {0}'.format(text),
                                      'Error saving layout, '\
                                      'No View Widget Assigned')
              return
          
          # save the profile from the view widget
          prof = self.viewWidget().saveProfile()
          profile.setXmlElement(prof.xmlElement())
          
          if not self.signalsBlocked():
              self.profileChanged.emit(profile)
docs: Saves the profile layout to the inputed profile.
          
          :param      profile | <projexui.widgets.xviewwidget.XViewProfile>