Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berryUIElement.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "berryUIElement.h"
14 
15 #include "../services/berryIServiceLocator.h"
16 
17 namespace berry
18 {
19 
21  : serviceLocator(serviceLocator)
22 {
23  if (!serviceLocator)
24  throw std::invalid_argument("serviceLocator must not be nullptr");
25 }
26 
28 {
29  return serviceLocator;
30 }
31 
32 void UIElement::SetDropDownId(const QString &/*id*/)
33 {
34  // This does nothing.
35 }
36 
37 }
UIElement(IServiceLocator *serviceLocator)
IServiceLocator * GetServiceLocator() const
virtual void SetDropDownId(const QString &id)